Emilio Cobos Álvarez d4dfa221f7 Bug 1869525 - Watch KDE's colors.css and trigger theme recomputation when it mutates. r=stransky
Consider the following situation:

 * We're using the Breeze (light) theme.
 * We switch to dark mode.

When the KDE system theme changes, we get a color scheme change
notification. However by the time we get it, the gtk colorreload module
that KDE uses to communicate its colors to GTK[1] hasn't processed the
change yet.

So we end up thinking that Breeze is still light, (and even
special-casing that wouldn't work, because we still get the light
colors). So we fall back to Adwaita-dark, and by the time the file
actually changes we don't get any other notification. I don't think
there's another thing to watch here, unfortunately, but if there is we
should do it. I guess we could patch the color-reload module to send
some sort of signal to the screen / settings objects?

[1]: https://invent.kde.org/plasma/kde-gtk-config/-/blob/master/color-reload-module

Differential Revision: https://phabricator.services.mozilla.com/D196164
2023-12-13 17:13:41 +00:00
..