mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 11:58:55 +00:00

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