I've installed Ubuntu 24.10 (clean install), which comes with Gnome 47.0. Running tests/manual/events/PlatformPreferencesChangedTest, I can observe that backgroundColor (GTK.theme_bg_color), foregroundColor (GTK.theme_fg_color), and colorScheme correctly reflect the system settings. When I toggle "Dark Style" from the Ubuntu system menu, the values update as expected.
It seems strange that the problem would appear for you with Gnome 46.0 as well as 47.4, but it doesn't appear for me with 47.0. Maybe something else is going on with your configuration. On Thu, Feb 27, 2025 at 7:25 PM Christopher Schnick <crschn...@xpipe.io> wrote: > > Hello, > > it seems like the Platform preferences API does not properly register > theme updates anymore in the latest desktop environments. > > In my testing, it didn't work on Gnome 47.4 and KDE Plasma 6.3.2. The > color scheme is always light and no updates are registered. The accent > color is also always the default one. > > On Gnome 46.0, when you change the dark mode setting, the GTK.theme_name > is actually updated but the bgcolor and fgcolor properties are not, > leading to the color scheme not being updated. But here, the properties > are definitely detected correctly on initialization, it's just the > updates that are not happening at runtime when something is changed. > > Best > Christopher Schnick