From c4e4b6ebb20c15d9e341175ef32d03b19bae821f Mon Sep 17 00:00:00 2001 From: Damocles Date: Sun, 12 Apr 2026 14:46:42 +0200 Subject: [PATCH] more colors --- modules/PowerProfile.qml | 4 ++++ modules/Temperature.qml | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/PowerProfile.qml b/modules/PowerProfile.qml index c770ea3..904492f 100644 --- a/modules/PowerProfile.qml +++ b/modules/PowerProfile.qml @@ -8,6 +8,10 @@ M.BarIcon { property string profile: "" + color: root.profile === "performance" ? M.Theme.base09 + : root.profile === "power-saver" ? M.Theme.base0B + : M.Theme.base05 + icon: { if (root.profile === "performance") return "\uF0E7"; diff --git a/modules/Temperature.qml b/modules/Temperature.qml index 304cc7b..09d776d 100644 --- a/modules/Temperature.qml +++ b/modules/Temperature.qml @@ -8,6 +8,9 @@ M.BarSection { tooltip: "Temperature: " + root.celsius + "\u00B0C" property int celsius: 0 + readonly property color _stateColor: celsius > 80 ? M.Theme.base08 + : celsius > 60 ? M.Theme.base09 + : M.Theme.base05 FileView { id: thermal @@ -23,12 +26,12 @@ M.BarSection { M.BarIcon { icon: "\uF2C9" - color: root.celsius > 80 ? M.Theme.base08 : M.Theme.base05 + color: root._stateColor anchors.verticalCenter: parent.verticalCenter } Text { text: root.celsius + "\u00B0C" - color: root.celsius > 80 ? M.Theme.base08 : M.Theme.base05 + color: root._stateColor font.pixelSize: M.Theme.fontSize font.family: M.Theme.fontFamily verticalAlignment: Text.AlignVCenter