propagate group accent color to modules via accentColor chain

This commit is contained in:
Damocles 2026-04-12 22:14:45 +02:00
parent ec8672e837
commit 834bf808d0
20 changed files with 17 additions and 25 deletions

View file

@ -22,7 +22,7 @@ M.BarSection {
readonly property int _critThresh: M.Modules.battery.critical || 15
readonly property int _warnThresh: M.Modules.battery.warning || 25
readonly property bool _critical: pct < _critThresh && !charging
property color _stateColor: charging ? M.Theme.base0B : _critical ? M.Theme.base09 : pct < _warnThresh ? M.Theme.base0A : M.Theme.base08
property color _stateColor: charging ? M.Theme.base0B : _critical ? M.Theme.base09 : pct < _warnThresh ? M.Theme.base0A : root.accentColor
property real _blinkOpacity: 1
SequentialAnimation {