Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9e3cad6dbd | |||
| 9436acd626 |
@@ -115,6 +115,10 @@ Singleton {
|
||||
Config.save();
|
||||
}
|
||||
|
||||
function swapRG(c: color): color {
|
||||
return Qt.rgba(c.g, c.r, c.b, c.a);
|
||||
}
|
||||
|
||||
Component.onCompleted: debounceTimer.triggered()
|
||||
|
||||
Connections {
|
||||
|
||||
+2
-2
@@ -10,8 +10,8 @@ Singleton {
|
||||
readonly property var colors: {
|
||||
if (deviceState === UPowerDeviceState.Charging || deviceState === UPowerDeviceState.FullyCharged)
|
||||
return {
|
||||
fg: DynamicColors.palette.m3primary,
|
||||
bg: DynamicColors.palette.m3onPrimary
|
||||
fg: DynamicColors.swapRG(DynamicColors.palette.m3error),
|
||||
bg: DynamicColors.swapRG(DynamicColors.palette.m3onError)
|
||||
};
|
||||
else if (currentPerc <= 0.2)
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user