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

@ -8,6 +8,11 @@ Singleton {
id: root
// --- The Backgrounds (Darkest to Lightest) ---
readonly property color accent: base0D
readonly property color barBg: base00
readonly property color moduleBg: base02
readonly property color activeModuleBg: base03
readonly property color text: base07
readonly property color base00: "#" + viewer.base00
readonly property color base01: "#" + viewer.base01
readonly property color base02: "#" + viewer.base02

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

View file

@ -26,7 +26,7 @@ Rectangle {
}
required property real moduleHeight
required property int screenHeight
color: Colors.base02
color: Colors.moduleBg
radius: Config.rounding
implicitWidth: moduleHeight
implicitHeight: moduleHeight

View file

@ -4,7 +4,7 @@ import QtQuick
Text {
font.family: "Material Symbols Rounded"
color: Colors.base05
color: Colors.text
font.pixelSize: Config.iconSize
property bool fill: true
renderType: Text.NativeRendering

View file

@ -5,5 +5,5 @@ import qs.settings
Text {
font.family: Config.font
font.pixelSize: Config.fontSize
color: Colors.base05
color: Colors.text
}