align module colors to their group accent
This commit is contained in:
parent
5b1c355917
commit
160937e674
10 changed files with 15 additions and 15 deletions
|
|
@ -18,7 +18,7 @@ M.BarSection {
|
|||
readonly property var dev: UPower.displayDevice
|
||||
readonly property real pct: (dev?.percentage ?? 0) * 100
|
||||
readonly property bool charging: dev?.state === UPowerDeviceState.Charging
|
||||
property color _stateColor: charging ? M.Theme.base0B : pct < 15 ? M.Theme.base08 : pct < 30 ? M.Theme.base09 : M.Theme.base0B
|
||||
property color _stateColor: charging ? M.Theme.base0B : pct < 15 ? M.Theme.base09 : pct < 30 ? M.Theme.base0A : M.Theme.base08
|
||||
|
||||
Behavior on _stateColor { ColorAnimation { duration: 300 } }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue