extract constants
This commit is contained in:
parent
bc3a85d18d
commit
b969f0824f
22 changed files with 106 additions and 63 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue