Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-08-31 09:09:19

tenplus1
Member
Registered: 2023-08-31
Posts: 4

Dark Theme Issue GTK4

When selecting a dark theme like Greybird-dark or Adwaita-dark in Xubuntu's Appearance setting, GTK4 applications do not use the dark-theme and appear in light mode.

The only way to fix this was to enter this line into terminal:

echo "export GTK_THEME=Greybird-dark:dark" >> ~/.profile

Would it be possible to add an option in the Appearance tab that allows the user to toggle a switch for dark mode to make this easier ?

Offline

#2 2023-08-31 09:58:32

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Dark Theme Issue GTK4

Hello and welcome.

See: https://gitlab.xfce.org/xfce/xfce4-sett … issues/406. This functionality was added to xfce4-settings version 4.17.3. What version are you using?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2023-09-01 11:58:33

tenplus1
Member
Registered: 2023-08-31
Posts: 4

Re: Dark Theme Issue GTK4

@ToZ - I'm using xfce4-settings 4.18.2-1ubuntu1 and that setting does not appear or work when using dark themes with gtk4/adwaita app gui.

Offline

#4 2023-09-01 17:20:19

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Dark Theme Issue GTK4

It should. At least it does in my testing.

Which distro are you using and what is the gtk4/adwaita app?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2023-09-02 14:24:13

tenplus1
Member
Registered: 2023-08-31
Posts: 4

Re: Dark Theme Issue GTK4

@ToZ - I'm using Xubuntu 23.10 (beta) with Transmission app.

Offline

#6 2023-09-02 16:18:23

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Dark Theme Issue GTK4

I believe transmission has been migrated to GTK4. Try running it manually like this:

GTK_THEME="Greybird:dark" transmission-gtk

...and it should work. Greybird-dark doesn't currently support GTK4 (gtk4 support was recently added but it looks like it was just done for the light version).

Other themes that support gtk4 (they will have a gtk-4.0 folder in the theme directory) should be able to more efficiently switch between light and dark themes for those apps built on gtk4.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2023-09-03 07:27:08

tenplus1
Member
Registered: 2023-08-31
Posts: 4

Re: Dark Theme Issue GTK4

I noted above the command added to .profile to make sure gtk4 apps use the dark-theme, which is why I asked if it was possible to add a setting in Appearance to do this for beginners instead of relying on commands.

Offline

#8 2023-09-03 09:21:38

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Dark Theme Issue GTK4

Yes. The problem is actually the theme - Greybird-dark doesn't yet support GTK4 apps. You could create a but report with the theme maker (https://github.com/shimmerproject/Greybird/issues) to remedy this.

For those themes that support GTK4 apps, the switch should happen automatically. (note: a patch was just added to also support themes that use different combinations of "dark" in the theme name (https://gitlab.xfce.org/xfce/xfce4-sett … 9c41e1c02d).


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 7 queries executed - Memory usage: 545.81 KiB (Peak: 546.66 KiB) ]