From fa19c59d0e42134bbd39e63688d8f378961019d9 Mon Sep 17 00:00:00 2001 From: Zacharias-Brohn Date: Tue, 25 Nov 2025 22:22:03 +0100 Subject: [PATCH] coloranimation --- Modules/AudioWidget.qml | 4 ++++ Modules/Bar/BarLoader.qml | 2 +- Modules/Resources.qml | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Modules/AudioWidget.qml b/Modules/AudioWidget.qml index 3f3dfbd..358d67a 100644 --- a/Modules/AudioWidget.qml +++ b/Modules/AudioWidget.qml @@ -84,6 +84,10 @@ Item { implicitWidth: parent.width * ( Pipewire.defaultAudioSink?.audio.volume ?? 0 ) radius: parent.radius color: root.barColor + + Behavior on color { + CAnim {} + } } } diff --git a/Modules/Bar/BarLoader.qml b/Modules/Bar/BarLoader.qml index 707677f..878e69e 100644 --- a/Modules/Bar/BarLoader.qml +++ b/Modules/Bar/BarLoader.qml @@ -38,7 +38,7 @@ RowLayout { popouts.hasCurrent = true; } else if ( id === "resources" && Config.barConfig.popouts.resources ) { popouts.currentName = "resources"; - popouts.currentCenter = Qt.binding(() => item.mapToItem(root, itemWidth / 2, 0).x); + popouts.currentCenter = Qt.binding(() => item.mapToItem(root, itemWidth / 2 + 5, 0).x); popouts.hasCurrent = true; } else if (id === "tray" && Config.barConfig.popouts.tray) { const index = Math.floor(((x - top - 6) / item.implicitWidth) * item.items.count); diff --git a/Modules/Resources.qml b/Modules/Resources.qml index 17c61c5..7604ada 100644 --- a/Modules/Resources.qml +++ b/Modules/Resources.qml @@ -24,6 +24,9 @@ Item { implicitHeight: 22 color: Config.useDynamicColors ? DynamicColors.tPalette.m3surfaceContainer : "#40000000" radius: height / 2 + Behavior on color { + CAnim {} + } RowLayout { id: rowLayout