termux-packages icon indicating copy to clipboard operation
termux-packages copied to clipboard

[Bug]: XFCE (xfce4-appearance-settings) doesn't seem to apply GTK themes even if valid themes are set

Open zavocc opened this issue 1 month ago • 4 comments

Problem description

When I try to change themes using xfce4-appearance-settings, almost all of the GTK applications (particularly GTK3-based ones) doesn't seem to reflect on the GTK theme settings set by appearance settings. But Xfwm4 and GTK2 based applications does render with user-set themes.

You can see in the screenshot... setting a theme like Adwaita dark or Arc-dark, none of the applications like the appearance settings window itself, mousepad, and chromium (with gtk theme set) had been displaying correct GTK theme even if I restarted XFCE session.. the issue still persists.

Image Image Image Image

However, GTK2 based applications seems to respect the theme set, such as leafpad

Image

I even tried reinitializing my home directory from scratch with no bad configs that would hopefully resolve this issue but it doesn't work.

What steps will reproduce the bug?

  1. Install XFCE and sample programs like Chromium (with GTK theme set), Mousepad, or any GTK3-based application

  2. Install or set themes with GTK2/GTK3 support, such as arc-gtk-theme or Flat remix GTK dark theme, it doesn't matter if it's installed on ~/.local/share/themes or $PREFIX/share/themes

  3. Open a GTK3-based program and GTK2-based program in comparison and set the theme.

What is the expected behavior?

It should immediately theme other apps and the entire desktop. But it's nonfunctional.

System information

Termux Variables:
TERMUX_API_VERSION=0.53.0
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=29974
TERMUX_APP__DATA_DIR=/data/user/0/com.termux
TERMUX_APP__LEGACY_DATA_DIR=/data/data/com.termux
TERMUX_APP__SE_FILE_CONTEXT=u:object_r:app_data_file:s0:c25,c257,c512,c768
TERMUX_APP__SE_INFO=default:targetSdkVersion=28:complete
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.3
TERMUX__HOME=/data/data/com.termux/files/home
TERMUX__PREFIX=/data/data/com.termux/files/usr
TERMUX__ROOTFS_DIR=/data/data/com.termux/files
TERMUX__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c25,c257,c512,c768
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://packages.termux.dev/apt/termux-main stable main
# tur-repo (sources.list.d/tur.list)
deb https://tur.kcubeterm.com tur-packages tur tur-on-device tur-continuous
# x11-repo (sources.list.d/x11.list)
deb https://packages.termux.dev/apt/termux-x11 x11 main
Updatable packages:
tar/stable 1.35-2 aarch64 [upgradable from: 1.35-1]
xkeyboard-config/x11 2.46 all [upgradable from: 2.44]
termux-tools version:
1.45.0
Android version:
11
Kernel build information:
Linux localhost 4.14.180-perf+ #2 SMP PREEMPT Sat Sep 3 23:17:03 CST 2022 aarch64 Android
Device manufacturer:
OPPO
Device model:
CPH1933
Supported ABIs:
SUPPORTED_ABIS: arm64-v8a,armeabi-v7a,armeabi
SUPPORTED_32_BIT_ABIS: armeabi-v7a,armeabi
SUPPORTED_64_BIT_ABIS: arm64-v8a
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec-ld-preload.so
Installed termux plugins:
com.termux.api versionCode:1002
com.termux.styling versionCode:1000

zavocc avatar Dec 08 '25 11:12 zavocc

Image Greybird correctly applies dark mode.

shiumano avatar Dec 09 '25 01:12 shiumano

I haven't tried on a fresh termux install. I'll update back if the issue still persists

zavocc avatar Dec 09 '25 01:12 zavocc

@zavocc for some reason, at first, there were no themes for me in that XFCE Appearance settings menu, just an empty box, so I couldn't select a different theme.

Then, after I installed the package gnome-themes-extra and restarted XFCE, themes appeared there for me.

When I click Adwaita-dark in the themes list after I used pkg install gnome-themes-extra, it works for me:

Image

Maybe you could try installing package gnome-themes-extra if you didn't yet?

robertkirkman avatar Dec 09 '25 07:12 robertkirkman

Seems to be solved by simply reinstalling Termux from scratch, the problem was isolated within my end (though the cause was unknown but most likely negligence of care 😁) Will close this issue if there's no further issues

zavocc avatar Dec 09 '25 13:12 zavocc