coloranimation

This commit is contained in:
Zacharias-Brohn
2025-11-25 22:22:03 +01:00
parent 31f4f8655c
commit fa19c59d0e
3 changed files with 8 additions and 1 deletions
+4
View File
@@ -84,6 +84,10 @@ Item {
implicitWidth: parent.width * ( Pipewire.defaultAudioSink?.audio.volume ?? 0 )
radius: parent.radius
color: root.barColor
Behavior on color {
CAnim {}
}
}
}
+1 -1
View File
@@ -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);
+3
View File
@@ -24,6 +24,9 @@ Item {
implicitHeight: 22
color: Config.useDynamicColors ? DynamicColors.tPalette.m3surfaceContainer : "#40000000"
radius: height / 2
Behavior on color {
CAnim {}
}
RowLayout {
id: rowLayout