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

@ -8,7 +8,7 @@ M.BarSection {
tooltip: "Temperature: " + root.celsius + "\u00B0C"
property int celsius: 0
property color _stateColor: celsius > (M.Modules.temperature.hot || 80) ? M.Theme.base09 : celsius > (M.Modules.temperature.warm || 60) ? M.Theme.base0A : M.Theme.base08
property color _stateColor: celsius > (M.Modules.temperature.hot || 80) ? M.Theme.base09 : celsius > (M.Modules.temperature.warm || 60) ? M.Theme.base0A : root.accentColor
Behavior on _stateColor {
ColorAnimation {
duration: 300