Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
7cc931b6 by wurstsalat at 2026-01-09T18:28:14+01:00
fix: Reload user styles after dark/light mode switch

Fixes #12426

- - - - -


2 changed files:

- gajim/common/dbus/system_style.py
- gajim/common/winapi/system_style.py


Changes:

=====================================
gajim/common/dbus/system_style.py
=====================================
@@ -74,6 +74,8 @@ def _signal_setting_changed(
             self._prefer_dark = value == 1
             self._callback()
             app.ged.raise_event(StyleChanged())
+            # Reload CSS to ensure mode-specific user colors are reloaded
+            app.css_config.reload_css()
 
     @property
     def prefer_dark(self) -> bool | None:


=====================================
gajim/common/winapi/system_style.py
=====================================
@@ -52,6 +52,8 @@ def _signal_color_values_changed(
             self._prefer_dark = prefer_dark
             self._callback()
             app.ged.raise_event(StyleChanged())
+            # Reload CSS to ensure mode-specific user colors are reloaded
+            app.css_config.reload_css()
 
     @property
     def prefer_dark(self) -> bool | None:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/7cc931b6b5ee9f229618dada302969280bd2d09f

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/7cc931b6b5ee9f229618dada302969280bd2d09f
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to