add accentColor property to BarIcon and BarLabel for proper color propagation

This commit is contained in:
Damocles 2026-04-17 18:10:48 +02:00
parent b3e919514a
commit 7dbbb89455
4 changed files with 8 additions and 6 deletions

View file

@ -5,7 +5,7 @@ M.BarIcon {
id: root
tooltip: "Power profile: " + (M.PowerProfileService.profile || "unknown")
color: M.PowerProfileService.profile === "performance" ? M.Theme.base09 : M.PowerProfileService.profile === "power-saver" ? M.Theme.base0B : parent?.accentColor ?? M.Theme.base05
color: M.PowerProfileService.profile === "performance" ? M.Theme.base09 : M.PowerProfileService.profile === "power-saver" ? M.Theme.base0B : root.accentColor
icon: {
if (M.PowerProfileService.profile === "performance")