You are not logged in.

#1 2022-11-17 01:49:14

vesse
Member
Registered: 2022-11-17
Posts: 11

[SOLVED] Theme of some GTK / QT programs doesn't turn to dark in XFCE

Hi !

A fresh Archlinux installation. I wanted to start using a dark theme. For this I installed the following packages:

  extra/xfwm4 4.16.1-3 (xfce4) [installed]
    Xfce's window manager
  extra/adwaita-icon-theme 43-1 [installed]
    GNOME standard icons
  extra/libadwaita 1:1.2.0-1 [installed]
    Building blocks for modern adaptive GNOME applications
  community/adwaita-qt5 1.4.2-1 [installed]
    A style to bend Qt5 applications to look like they belong into GNOME Shell
  community/adwaita-qt6 1.4.2-1 [installed]
    A style to bend Qt6 applications to look like they belong into GNOME Shell
  community/qt5ct 1.5-2 [installed]
    Qt5 Configuration Utility
  community/qt6ct 0.7-2 [installed]
    Qt 6 Configuration Utility
  community/papirus-icon-theme 20221101-1 [installed]
    Papirus icon theme

If I choose the style adwaita-dark and the icons papirus-dark in the settings, some programs still remain with a light style. Specifically, all GTK4 programs: baobab, gnome-calculator and seahorse. Some GTK3 programs, e.g. evince. Also most qt5 programs.
Any ideas ?

Thank you !

Last edited by vesse (2022-11-17 23:12:43)


---
Kernel & all systemd & xfce4

Offline

#2 2022-11-17 08:02:40

d.ALT
Member
Registered: 2019-05-10
Posts: 959

Re: [SOLVED] Theme of some GTK / QT programs doesn't turn to dark in XFCE

If not done already, restart the session / computer


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#3 2022-11-17 16:54:20

vesse
Member
Registered: 2022-11-17
Posts: 11

Re: [SOLVED] Theme of some GTK / QT programs doesn't turn to dark in XFCE

Also tried:

  # cat ~/.config/gtk-3.0/settings.ini
    [Settings]
    gtk-application-prefer-dark-theme=1

Seems to be a bug. Because the same problem occurs on my other Archlinux PC too.


---
Kernel & all systemd & xfce4

Offline

#4 2022-11-17 22:59:52

vesse
Member
Registered: 2022-11-17
Posts: 11

Re: [SOLVED] Theme of some GTK / QT programs doesn't turn to dark in XFCE

As I mentioned in my first post, that only programs in my Archlinux that refused to switch to dark theme were baobab, evince, seahorse and gnome-calculator. They all are part of GNOME Project. Currently the themes of all other programs can be modified from the XFCE settings except for GNOME.

Solved this issue by:

# gsettings set org.gnome.desktop.interface gtk-theme Adwaita-dark
# gsettings set org.gnome.desktop.interface color-scheme prefer-dark

Also QT5 and QT6 require the next setting inserted:

# cat /etc/environment
...
QT_QPA_PLATFORMTHEME=qt5ct
...

---
Kernel & all systemd & xfce4

Offline

#5 2022-11-18 00:15:20

yochananmarqos
Member
Registered: 2020-02-05
Posts: 217

Re: [SOLVED] Theme of some GTK / QT programs doesn't turn to dark in XFCE

For Qt applications, install qgnomeplatform-qt5 & qgnomeplatform-qt6. Do not set QT_QPA_PLATFORMTHEME and do not use Qt5Ct or Qt6Ct. Afterward, reboot.

For theming Gtk 4 on Xfce, I don't recall as I use GNOME. I'm sure there's a tip in the wiki somewhere.

Last edited by yochananmarqos (2022-11-18 00:16:43)

Offline

Board footer

Powered by FluxBB