extract constants

This commit is contained in:
Damocles 2026-04-12 10:57:48 +02:00
parent bc3a85d18d
commit b969f0824f
22 changed files with 106 additions and 63 deletions

View file

@ -9,9 +9,12 @@ M.BarIcon {
property string profile: ""
icon: {
if (root.profile === "performance") return "\uF0E7";
if (root.profile === "power-saver") return "\uF06C";
if (root.profile === "balanced") return "\uF24E";
if (root.profile === "performance")
return "\uF0E7";
if (root.profile === "power-saver")
return "\uF06C";
if (root.profile === "balanced")
return "\uF24E";
return "\uF0E7";
}
@ -34,7 +37,8 @@ M.BarIcon {
id: setter
property string next: ""
command: ["powerprofilesctl", "set", next]
onRunningChanged: if (!running && next !== "") proc.running = true
onRunningChanged: if (!running && next !== "")
proc.running = true
}
MouseArea {