<div dir="ltr"><div>Thank you, Olivier! That was actually it: I did not expect that the client application itself has to do this</div><div><pre class="gmail-code gmail-highlight" lang="c"><span> <span class="gmail-n">g_object_set</span><span class="gmail-p">(</span><span class="gmail-n">gtk_settings_get_default</span><span class="gmail-p">(),</span></span>
<span> <span class="gmail-s">"gtk-application-prefer-dark-theme"</span><span class="gmail-p">,</span></span>
<span> <span class="gmail-n">plugin_gtk</span><span class="gmail-o">-></span><span class="gmail-n">color_scheme_setting</span> <span class="gmail-o">==</span> <span class="gmail-n">LIBDECOR_COLOR_SCHEME_PREFER_DARK</span><span class="gmail-p">,</span></span>
<span> <span class="gmail-nb">NULL</span><span class="gmail-p">);</span></span>
</pre>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.</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Fri, Jul 18, 2025 at 7:10 PM Olivier Fourdan <<a href="mailto:ofourdan@redhat.com">ofourdan@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Maxim,<br>
<br>
On Fri, Jul 18, 2025 at 5:04 PM Maxim Kartashev<br>
<<a href="mailto:maxim.kartashev@jetbrains.com" target="_blank">maxim.kartashev@jetbrains.com</a>> wrote:<br>
><br>
> 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.<br>
<br>
Ah, dark mode, libdecor does this:<br>
<br>
<a href="https://gitlab.freedesktop.org/libdecor/libdecor/-/blob/0.2.3/src/plugins/gtk/libdecor-gtk.c?ref_type=tags#L2831-2834" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/libdecor/libdecor/-/blob/0.2.3/src/plugins/gtk/libdecor-gtk.c?ref_type=tags#L2831-2834</a><br>
<br>
>From <a href="https://gitlab.freedesktop.org/libdecor/libdecor/-/commit/bf091cbf" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/libdecor/libdecor/-/commit/bf091cbf</a><br>
<br>
Maybe that's relevant for your issue?<br>
<br>
Cheers<br>
Olivier<br>
<br>
</blockquote></div>