more more colors

This commit is contained in:
Damocles 2026-04-12 14:51:21 +02:00
parent c4e4b6ebb2
commit ed72d81f3b
14 changed files with 22 additions and 10 deletions

View file

@ -45,10 +45,12 @@ M.BarSection {
M.BarIcon { M.BarIcon {
icon: "\uF185" icon: "\uF185"
color: M.Theme.base0A
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
M.BarLabel { M.BarLabel {
label: root.percent + "%" label: root.percent + "%"
color: M.Theme.base0A
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }

View file

@ -20,7 +20,7 @@ M.BarSection {
readonly property color _stateColor: charging ? M.Theme.base0B readonly property color _stateColor: charging ? M.Theme.base0B
: pct < 15 ? M.Theme.base08 : pct < 15 ? M.Theme.base08
: pct < 30 ? M.Theme.base09 : pct < 30 ? M.Theme.base09
: M.Theme.base05 : M.Theme.base0B
M.BarIcon { M.BarIcon {
icon: { icon: {

View file

@ -54,7 +54,7 @@ M.BarSection {
icon: "\uF294" icon: "\uF294"
color: root.state === "connected" ? M.Theme.base0D color: root.state === "connected" ? M.Theme.base0D
: root.state === "off" ? M.Theme.base04 : root.state === "off" ? M.Theme.base04
: M.Theme.base05 : M.Theme.base0D
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
M.BarLabel { M.BarLabel {

View file

@ -8,6 +8,7 @@ M.BarLabel {
precision: SystemClock.Seconds precision: SystemClock.Seconds
} }
color: M.Theme.base0D
font.pixelSize: M.Theme.fontSize + 1 font.pixelSize: M.Theme.fontSize + 1
label: Qt.formatDateTime(clock.date, "ddd, dd. MMM HH:mm") label: Qt.formatDateTime(clock.date, "ddd, dd. MMM HH:mm")
tooltip: Qt.formatDateTime(clock.date, "dddd, dd. MMMM yyyy\nHH:mm:ss") tooltip: Qt.formatDateTime(clock.date, "dddd, dd. MMMM yyyy\nHH:mm:ss")

View file

@ -54,11 +54,12 @@ M.BarSection {
M.BarIcon { M.BarIcon {
icon: "\uF2DB" icon: "\uF2DB"
color: M.Theme.base08
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
Text { Text {
text: root.usage.toString().padStart(2) + "%@" + root.freqGhz.toFixed(2) text: root.usage.toString().padStart(2) + "%@" + root.freqGhz.toFixed(2)
color: M.Theme.base05 color: M.Theme.base08
font.pixelSize: M.Theme.fontSize font.pixelSize: M.Theme.fontSize
font.family: M.Theme.fontFamily font.family: M.Theme.fontFamily
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter

View file

@ -34,11 +34,12 @@ M.BarSection {
M.BarIcon { M.BarIcon {
icon: "\uF0C9" icon: "\uF0C9"
color: M.Theme.base09
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
Text { Text {
text: root.freePct + "% " + root.totalTb.toFixed(1) text: root.freePct + "% " + root.totalTb.toFixed(1)
color: M.Theme.base05 color: M.Theme.base09
font.pixelSize: M.Theme.fontSize font.pixelSize: M.Theme.fontSize
font.family: M.Theme.fontFamily font.family: M.Theme.fontFamily
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter

View file

@ -4,6 +4,7 @@ import "." as M
M.BarIcon { M.BarIcon {
id: root id: root
color: root.active ? M.Theme.base0A : M.Theme.base04
tooltip: "Idle inhibition: " + (root.active ? "active" : "inactive") tooltip: "Idle inhibition: " + (root.active ? "active" : "inactive")
property bool active: false property bool active: false

View file

@ -34,11 +34,12 @@ M.BarSection {
M.BarIcon { M.BarIcon {
icon: "\uEFC5" icon: "\uEFC5"
color: M.Theme.base0B
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
Text { Text {
text: root.percent + "%" text: root.percent + "%"
color: M.Theme.base05 color: M.Theme.base0B
font.pixelSize: M.Theme.fontSize font.pixelSize: M.Theme.fontSize
font.family: M.Theme.fontFamily font.family: M.Theme.fontFamily
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter

View file

@ -25,10 +25,12 @@ M.BarSection {
M.BarIcon { M.BarIcon {
icon: root.playing ? "\uF04B" : (root.player?.playbackState === MprisPlaybackState.Paused ? "\uDB80\uDFE4" : "\uDB81\uDCDB") icon: root.playing ? "\uF04B" : (root.player?.playbackState === MprisPlaybackState.Paused ? "\uDB80\uDFE4" : "\uDB81\uDCDB")
color: M.Theme.base0E
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
M.BarLabel { M.BarLabel {
label: root.player?.trackTitle || root.player?.identity || "" label: root.player?.trackTitle || root.player?.identity || ""
color: M.Theme.base0E
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }

View file

@ -61,13 +61,13 @@ M.BarSection {
return "\uDB85\uDE16"; return "\uDB85\uDE16";
return "\uDB82\uDCFD"; return "\uDB82\uDCFD";
} }
color: root.state === "disconnected" ? M.Theme.base08 : M.Theme.base05 color: root.state === "disconnected" ? M.Theme.base08 : M.Theme.base0C
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
Text { Text {
visible: root.state === "wifi" visible: root.state === "wifi"
text: root.essid text: root.essid
color: root.state === "disconnected" ? M.Theme.base08 : M.Theme.base05 color: root.state === "disconnected" ? M.Theme.base08 : M.Theme.base0C
font.pixelSize: M.Theme.fontSize + 1 font.pixelSize: M.Theme.fontSize + 1
font.family: M.Theme.fontFamily font.family: M.Theme.fontFamily
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter

View file

@ -44,10 +44,12 @@ M.BarSection {
return root.count > 0 ? "\uDB80\uDCA0" : "\uDB82\uDE93"; return root.count > 0 ? "\uDB80\uDCA0" : "\uDB82\uDE93";
return root.count > 0 ? "\uDB84\uDD6B" : "\uDB80\uDC9C"; return root.count > 0 ? "\uDB84\uDD6B" : "\uDB80\uDC9C";
} }
color: root.count > 0 ? M.Theme.base09 : (root.dnd ? M.Theme.base04 : M.Theme.base09)
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
M.BarLabel { M.BarLabel {
label: root.count > 0 ? String(root.count) : "" label: root.count > 0 ? String(root.count) : ""
color: M.Theme.base09
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }

View file

@ -10,7 +10,7 @@ M.BarSection {
property int celsius: 0 property int celsius: 0
readonly property color _stateColor: celsius > 80 ? M.Theme.base08 readonly property color _stateColor: celsius > 80 ? M.Theme.base08
: celsius > 60 ? M.Theme.base09 : celsius > 60 ? M.Theme.base09
: M.Theme.base05 : M.Theme.base0C
FileView { FileView {
id: thermal id: thermal

View file

@ -17,12 +17,12 @@ M.BarSection {
M.BarIcon { M.BarIcon {
icon: root.muted ? "\uF026" : (root.volume > 0.5 ? "\uF028" : (root.volume > 0 ? "\uF027" : "\uF026")) icon: root.muted ? "\uF026" : (root.volume > 0.5 ? "\uF028" : (root.volume > 0 ? "\uF027" : "\uF026"))
color: root.muted ? M.Theme.base04 : M.Theme.base05 color: root.muted ? M.Theme.base04 : M.Theme.base0E
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
M.BarLabel { M.BarLabel {
label: Math.round(root.volume * 100) + "%" label: Math.round(root.volume * 100) + "%"
color: root.muted ? M.Theme.base04 : M.Theme.base05 color: root.muted ? M.Theme.base04 : M.Theme.base0E
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }

View file

@ -4,6 +4,7 @@ import "." as M
M.BarIcon { M.BarIcon {
icon: "\uF011" icon: "\uF011"
color: M.Theme.base08
tooltip: "Open logout menu" tooltip: "Open logout menu"
Process { Process {