On GTK L&F not folowing Gnome desktop theme
Maxim Kartashev
maxim.kartashev at jetbrains.com
Fri Jul 18 15:21:33 UTC 2025
Thank you, Olivier! That was actually it: I did not expect that the client
application itself has to do this
g_object_set(gtk_settings_get_default(),
"gtk-application-prefer-dark-theme",
plugin_gtk->color_scheme_setting ==
LIBDECOR_COLOR_SCHEME_PREFER_DARK, NULL);
I will make the change for the Wayland part of the Wakefield project.
Perhaps, an issue needs to be logged (and fixed) for the XWayland part of
it.
On Fri, Jul 18, 2025 at 7:10 PM Olivier Fourdan <ofourdan at redhat.com> wrote:
> Hi Maxim,
>
> On Fri, Jul 18, 2025 at 5:04 PM Maxim Kartashev
> <maxim.kartashev at jetbrains.com> wrote:
> >
> > Following our discussion at the Wakefield meeting, I tested SwingSet2
> with GTK L&F on Fedora 42 with Gnome 48 and even in the XWayland mode,
> neither the title bar (managed by the window manager, not the application)
> nor all the Gnome controls (like buttons and scroll bars painted by the
> application through GTK API) have the dark theme when the dark theme is
> installed for the desktop.
>
> Ah, dark mode, libdecor does this:
>
>
> https://gitlab.freedesktop.org/libdecor/libdecor/-/blob/0.2.3/src/plugins/gtk/libdecor-gtk.c?ref_type=tags#L2831-2834
>
> From https://gitlab.freedesktop.org/libdecor/libdecor/-/commit/bf091cbf
>
> Maybe that's relevant for your issue?
>
> Cheers
> Olivier
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/wakefield-dev/attachments/20250718/612d0129/attachment.htm>
More information about the wakefield-dev
mailing list