Preserve status icon custom colour when switching theme (#2452)

This commit is contained in:
Veronica Berglyd Olsen
2025-07-08 15:19:33 +02:00
parent 791da75ae9
commit 551a7609f8
2 changed files with 39 additions and 6 deletions
+2 -1
View File
@@ -192,7 +192,8 @@ class NWStatus:
def refreshIcons(self) -> None:
"""Refresh all icons."""
for entry in self._store.values():
entry.color = SHARED.theme.parseColor(entry.theme)
if entry.theme != CUSTOM_COL:
entry.color = SHARED.theme.parseColor(entry.theme)
entry.icon = NWStatus.createIcon(self._height, entry.color, entry.shape)
return