[Users] GTK-3 again // was: Fixing interface colors

mi codejodler at gmx.ch
Thu Mar 23 21:38:26 UTC 2023


oh sorry this was a copy&paste failure - i copied into a new reply after seeing that there was a new reply

Here is the full text -->



I think GTK-3 just should have a way to do this and i tried to find it online.

Here are suggestions for gtk-3.  I'm not going to try this myself, i hope someone has time to check this out.


(1) Create  /usr/share/themes/*Theme Name*/gtk-3.0/apps/  directory and put your app-specific css there.

If it's not going the overrdide way, then you probably have to copy a full original gtk.css and then tweak it.

However i could not find yet how to name them. Maybe just like 'claws-mail.css' ?


(2) Create  $HOME/.config/*App name*/gtk-3.0 and put a file 'settings.ini' there which containts:


	[Settings]
	gtk-application-prefer-dark-theme=true


Not all apps may use that .config dir (although they should) and if not then try add  an alias like (if it was gnome-terminal):

	gnome-terminal="XDG_CONFIG_HOME=$HOME/.config/gnome-terminal    gnome-terminal" >> $HOME/.alias

for commandline launch.


(3) Another way to apply a specific theme is to put the  GTK_THEME=  variable into the app launch environment.

For commandline that would be like

	GTK_THEME=elementary   claws-mail

and again you can create a fixed alias, a desktop launcher, or whatever.

You can probably create you own theme for this, too. (Copy a theme folder and modify it)


More information about the Users mailing list