App not respecting dark theme after system update

I have an app called toggldesktop-git, installed from AUR.
It does not have an option for dark theme.
I am using the Xfce theme called Adwaita-dark, and until now, toggldesktop was respecting the dark theme.
Today I installed a major system update, and now toggldesktop starts up dark, but after a minute it turns light.

garuda-inxi
System:
  Kernel: 5.15.71-1-lts arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-lts
    root=UUID=1ae1827d-082e-4190-8d66-84aa16e7a79c rw rootflags=subvol=@
    quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    loglevel=3
  Desktop: Xfce v: 4.16.1 tk: Gtk v: 3.24.34 info: xfce4-panel wm: xfwm
    v: 4.16.1 vt: 7 dm: LightDM v: 1.32.0 Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: PRIME B365M-A v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 1203
    date: 10/10/2019
CPU:
  Info: model: Intel Core i7-9700 bits: 64 type: MCP arch: Coffee Lake
    gen: core 9 level: v3 built: 2018 process: Intel 14nm family: 6
    model-id: 0x9E (158) stepping: 0xD (13) microcode: 0xF0
  Topology: cpus: 1x cores: 8 smt: <unsupported> cache: L1: 512 KiB
    desc: d-8x32 KiB; i-8x32 KiB L2: 2 MiB desc: 8x256 KiB L3: 12 MiB
    desc: 1x12 MiB
  Speed (MHz): avg: 4331 high: 4551 min/max: 800/4700 scaling:
    driver: intel_pstate governor: performance cores: 1: 4467 2: 4501 3: 3990
    4: 4434 5: 4150 6: 4551 7: 4017 8: 4540 bogomips: 48000
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT disabled
  Type: retbleed mitigation: Enhanced IBRS
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl and seccomp
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB
    filling, PBRSB-eIBRS: SW sequence
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: TSX disabled
Graphics:
  Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630] vendor: ASUSTeK
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: HDMI-A-1,HDMI-A-2 empty: DP-1 bus-ID: 00:02.0
    chip-ID: 8086:3e98 class-ID: 0300
  Device-2: Microdia USB Live camera type: USB
    driver: snd-usb-audio,uvcvideo bus-ID: 1-1.2:7 chip-ID: 0c45:636b
    class-ID: 0102 serial: <filter>
  Display: x11 server: X.Org v: 21.1.4 compositor: xfwm v: 4.16.1 driver:
    X: loaded: modesetting alternate: fbdev,intel,vesa gpu: i915
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1016x286mm (40.00x11.26")
    s-diag: 1055mm (41.55")
  Monitor-1: HDMI-A-1 mapped: HDMI-1 pos: primary,right model: VG27AQ1A
    serial: <filter> built: 2020 res: 1920x1080 hz: 120 dpi: 82 gamma: 1.2
    size: 596x336mm (23.46x13.23") diag: 685mm (27") ratio: 16:9 modes:
    max: 2560x1440 min: 720x400
  Monitor-2: HDMI-A-2 mapped: HDMI-2 pos: primary,left
    model: Samsung S24B300 serial: <filter> built: 2013 res: 1920x1080 hz: 60
    dpi: 94 gamma: 1.2 size: 521x293mm (20.51x11.54") diag: 598mm (23.5")
    ratio: 16:9 modes: max: 1920x1080 min: 720x400
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa
    22.1.7 direct render: Yes
Audio:
  Device-1: Intel 200 Series PCH HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel bus-ID: 1-1.2:7 bus-ID: 00:1f.3
    chip-ID: 0c45:636b class-ID: 0102 chip-ID: 8086:a2f0 serial: <filter>
    class-ID: 0403
  Device-2: Microdia USB Live camera type: USB
    driver: snd-usb-audio,uvcvideo
  Sound Server-1: ALSA v: k5.15.71-1-lts running: yes
  Sound Server-2: PulseAudio v: 16.1 running: no
  Sound Server-3: PipeWire v: 0.3.58 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK PRIME B450M-A driver: r8169 v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 03:00.0 chip-ID: 10ec:8168
    class-ID: 0200
  IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Realtek 802.11ac NIC type: USB driver: rtl8821cu
    bus-ID: 1-1.1:4 chip-ID: 0bda:c811 class-ID: 0000 serial: <filter>
  IF: wlp0s20f0u1u1 state: dormant mac: <filter>
Bluetooth:
  Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB
    driver: btusb v: 0.8 bus-ID: 1-2.2:8 chip-ID: 0a12:0001 class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 1 state: up address: <filter>
Drives:
  Local Storage: total: 2.26 TiB used: 790.43 GiB (34.2%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: SA400S37480G
    size: 447.13 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: K1B3 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Toshiba model: HDWD120
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    type: HDD rpm: 7200 serial: <filter> rev: ACF0 scheme: GPT
Partition:
  ID-1: / raw-size: 50.3 GiB size: 50.3 GiB (100.00%) used: 19.79 GiB (39.3%)
    fs: btrfs dev: /dev/sda7 maj-min: 8:7
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%) used: 37.8 MiB
    (39.4%) fs: vfat dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 50.3 GiB size: 50.3 GiB (100.00%) used: 19.79 GiB
    (39.3%) fs: btrfs dev: /dev/sda7 maj-min: 8:7
  ID-4: /var/log raw-size: 50.3 GiB size: 50.3 GiB (100.00%) used: 19.79
    GiB (39.3%) fs: btrfs dev: /dev/sda7 maj-min: 8:7
  ID-5: /var/tmp raw-size: 50.3 GiB size: 50.3 GiB (100.00%) used: 19.79
    GiB (39.3%) fs: btrfs dev: /dev/sda7 maj-min: 8:7
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 15.49 GiB used: 3 MiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 49.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 312 Uptime: 7m wakeups: 0 Memory: 15.49 GiB used: 4.8 GiB
  (31.0%) Init: systemd v: 251 default: graphical tool: systemctl
  Compilers: gcc: 12.2.0 Packages: pm: pacman pkgs: 1403 libs: 376
  tools: pamac,paru,yay Shell: Zsh v: 5.9 default: Bash v: 5.1.16
  running-in: xfce4-terminal inxi: 3.3.21
Garuda (2.6.8-1):
  System install date:     2022-09-12
  Last full system update: 2022-09-30
  Is partially upgraded:   No
  Relevant software:       NetworkManager
  Windows dual boot:       Probably (Run as root to verify)
  Snapshots:               Snapper
  Failed units:            
shmuel-garuda% 


Have you already tried rebuilding / reinstalling it (toggldesktop-git)?
I see it has dependencies with e.g. qt5-base which was recently updated.

2 Likes

I tried uninstalling and reinstalling it, as well as a few other versions of the app, and I get the same results.

I don't know, sorry, maybe someone more experienced with xfce theming might help.
Anyway, a not good sign is shown in the github upstream site mentioned in the AUR package:

3 Likes

Thanks. By the way, I am getting a secure connection error when trying to access this site via Firefox. I do not get the error in Google Chrome.

This worked, thanks to ToZ at the Xfce forum:
https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications

QGtkStyle

Note: QGtkStyle has been removed from qt5-base 5.7.0 [1] and added to qt5-stylepluginsAUR [2]

Warning: Depending on GTK 2 theme, this style may cause rendering issues such as transparent fonts or inconsistent widgets.

This Qt style uses GTK 2 to render all components to blend in with GNOME and similar GTK based environments. Beginning with Qt 4.5, this style is included in Qt. It requires gtk2 to be installed and configured.

This is the default Qt4 style in Cinnamon, GNOME and Xfce, and the default Qt5 style in Cinnamon, GNOME, MATE, LXDE and Xfce. In other environments:

  • For Qt4, it can be enabled with Qt Configuration (qtconfig-qt4), choose GTK under Appearance > GUI Style. Alternatively, edit the /etc/xdg/Trolltech.conf (system-wide) or ~/.config/Trolltech.conf (user-specific) file:

~/.config/Trolltech.conf

... [Qt] style=GTK+ ...

  • For Qt 5, it can be enabled by installing qt5-stylepluginsAUR and setting the following environment variable: QT_QPA_PLATFORMTHEME=gtk2

  • For Qt 6, it can be enabled by installing qt6gtk2AUR and choosing the qt6gtk2 style in qt6ct, or alternatively setting the following environment variable: QT_QPA_PLATFORMTHEME=gtk2

For full uniformity, make sure that the configured GTK theme supports both GTK 2 and GTK 3. If your preferred theme has inconsistent rendering after configuring Qt to use GTK2, install gtk-theme-switch2AUR and choose a theme.

4 Likes

More specifically, the solution that worked best for me was to install and configure Kvantum, and then to choose Kvantum as theme in QT5 Settings.

4 Likes

I am sure you mean Kvantum :slight_smile:

1 Like

Right. Corrected.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.