Other How to change GTK / Qt themes in icewm

hunter0one

Member

Reaction score: 60
Messages: 41

Greetings,

I've been using icewm as my window manager of choice for a while now but I can't figure out how to change themes for Gtk2-3 and Qt5. I've tried to use x11-themes/lxappearance and x11-themes/Kvantum respectively but neither one seem to make any changes to their dedicated applications. Can anyone shed some light on this? Thanks
 

Holger

Member

Reaction score: 16
Messages: 24

You can change the appearance of GTK/Qt-based application by tweaking config files in ~/.config. For example, GTK3 themes can be set in ~/.config/gtk-3.0/settings.ini. Mine looks as follows:
Code:
[Settings]
gtk-cursor-theme-name=Adwaita
gtk-print-preview-command=xpdf %f
While this does not configure a completely new theme, it fixes missing mouse cursor icons (that's currently all I want).
 

bsduck

Well-Known Member

Reaction score: 228
Messages: 272

Environment variables should work:
QT_STYLE_OVERRIDE=your-qt-theme
GTK_THEME=your-gtk-theme

For Qt theming I recommend misc/qt5ct too, which is quite convenient.
You'll need to set QT_QPA_PLATFORMTHEME=qt5ct to enable it.
 
Top