add ability to change colors quickly

This commit is contained in:
lucy 2026-08-03 23:48:49 +02:00
commit 0d01bffaff
12 changed files with 17 additions and 13 deletions

View file

@ -23,7 +23,7 @@ Rectangle {
}
implicitHeight: moduleHeight
implicitWidth: titleLayout.width + 32
color: Colors.base02
color: Colors.moduleBg
radius: Config.rounding
RowLayout {
id: titleLayout

View file

@ -30,7 +30,7 @@ Variants {
Rectangle {
id: container
radius: Config.floating ? Config.rounding : 0
color: Qt.rgba(Colors.base00.r, Colors.base00.g, Colors.base00.b, Config.opacity)
color: Qt.rgba(Colors.barBg.r, Colors.barBg.g, Colors.barBg.b, Config.opacity)
anchors.fill: parent
RowLayout {
id: leftLayout

View file

@ -19,7 +19,7 @@ Rectangle {
shadowColor: "#020202"
}
clip: true
color: Colors.base02
color: Colors.moduleBg
visible: UPower.displayDevice.isLaptopBattery
property double percent: UPower.displayDevice.percentage * 100
property bool hasBattery: UPower.displayDevice.isLaptopBattery

View file

@ -22,7 +22,7 @@ Rectangle {
required property double moduleHeight
implicitHeight: moduleHeight
implicitWidth: clockText.implicitWidth + 32
color: Colors.base02
color: Colors.moduleBg
radius: Config.rounding
SystemClock {
id: clock

View file

@ -31,7 +31,7 @@ Rectangle {
}
visible: spotify !== null && spotify.playbackState === MprisPlaybackState.Playing
clip: true
color: Colors.base02
color: Colors.moduleBg
radius: Config.rounding
RowLayout {
id: songLayout

View file

@ -20,7 +20,7 @@ Rectangle {
shadowOpacity: 0.5
shadowColor: "#020202"
}
color: clickHandler.containsMouse ? Colors.base03 : Colors.base02
color: clickHandler.containsMouse ? Colors.activeModuleBg : Colors.moduleBg
property PwNode defaultAudio: Pipewire.ready ? Pipewire.defaultAudioSink : null
property bool mute: Pipewire.ready ? defaultAudio?.audio.muted : null
radius: Config.rounding

View file

@ -25,7 +25,7 @@ Rectangle {
required property double moduleHeight
implicitHeight: moduleHeight
implicitWidth: iconlayout.width + 16
color: Colors.base02
color: Colors.moduleBg
radius: Config.rounding
RowLayout {

View file

@ -42,9 +42,8 @@ Rectangle {
id: wsName
anchors.centerIn: parent
text: wsWrapper.modelData.name
color: wsWrapper.active ? Colors.base0D : Colors.base04
opacity: wsWrapper.active ? 1.0 : 0.4
font.bold: wsWrapper.active
color: wsWrapper.active ? Colors.base0D : Colors.activeModuleBg
font.bold: true
}
MouseArea {
id: clickHandler