coloranimation
This commit is contained in:
@@ -84,6 +84,10 @@ Item {
|
|||||||
implicitWidth: parent.width * ( Pipewire.defaultAudioSink?.audio.volume ?? 0 )
|
implicitWidth: parent.width * ( Pipewire.defaultAudioSink?.audio.volume ?? 0 )
|
||||||
radius: parent.radius
|
radius: parent.radius
|
||||||
color: root.barColor
|
color: root.barColor
|
||||||
|
|
||||||
|
Behavior on color {
|
||||||
|
CAnim {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ RowLayout {
|
|||||||
popouts.hasCurrent = true;
|
popouts.hasCurrent = true;
|
||||||
} else if ( id === "resources" && Config.barConfig.popouts.resources ) {
|
} else if ( id === "resources" && Config.barConfig.popouts.resources ) {
|
||||||
popouts.currentName = "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;
|
popouts.hasCurrent = true;
|
||||||
} else if (id === "tray" && Config.barConfig.popouts.tray) {
|
} else if (id === "tray" && Config.barConfig.popouts.tray) {
|
||||||
const index = Math.floor(((x - top - 6) / item.implicitWidth) * item.items.count);
|
const index = Math.floor(((x - top - 6) / item.implicitWidth) * item.items.count);
|
||||||
|
|||||||
@@ -24,6 +24,9 @@ Item {
|
|||||||
implicitHeight: 22
|
implicitHeight: 22
|
||||||
color: Config.useDynamicColors ? DynamicColors.tPalette.m3surfaceContainer : "#40000000"
|
color: Config.useDynamicColors ? DynamicColors.tPalette.m3surfaceContainer : "#40000000"
|
||||||
radius: height / 2
|
radius: height / 2
|
||||||
|
Behavior on color {
|
||||||
|
CAnim {}
|
||||||
|
}
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: rowLayout
|
id: rowLayout
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user