more colors

This commit is contained in:
Damocles 2026-04-12 14:46:42 +02:00
parent 67e8a27b3d
commit c4e4b6ebb2
2 changed files with 9 additions and 2 deletions

View file

@ -8,6 +8,10 @@ M.BarIcon {
property string profile: "" property string profile: ""
color: root.profile === "performance" ? M.Theme.base09
: root.profile === "power-saver" ? M.Theme.base0B
: M.Theme.base05
icon: { icon: {
if (root.profile === "performance") if (root.profile === "performance")
return "\uF0E7"; return "\uF0E7";

View file

@ -8,6 +8,9 @@ M.BarSection {
tooltip: "Temperature: " + root.celsius + "\u00B0C" tooltip: "Temperature: " + root.celsius + "\u00B0C"
property int celsius: 0 property int celsius: 0
readonly property color _stateColor: celsius > 80 ? M.Theme.base08
: celsius > 60 ? M.Theme.base09
: M.Theme.base05
FileView { FileView {
id: thermal id: thermal
@ -23,12 +26,12 @@ M.BarSection {
M.BarIcon { M.BarIcon {
icon: "\uF2C9" icon: "\uF2C9"
color: root.celsius > 80 ? M.Theme.base08 : M.Theme.base05 color: root._stateColor
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
Text { Text {
text: root.celsius + "\u00B0C" text: root.celsius + "\u00B0C"
color: root.celsius > 80 ? M.Theme.base08 : M.Theme.base05 color: root._stateColor
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