lah7
4 November 2019 20:56
19
It should be possible to force Adwaita (assuming installed) to be the theme for a specific application (Eclipse) simply by editing it's launcher and adding an environment variable:
env GTK_THEME="Adwaita:light" eclipse
env GTK_THEME="Adwaita:dark" eclipse
This tip works for GTK2 or GTK3 themes and applications. This post does not cover applications based on other toolkits, such as Qt.
GTK2 Applications
As an example, I'll use the text editor, pluma, which is based on GTK2 in 16.04.
For system-wide themes:
env GTK2_RC_FILES=/usr/share/themes/BlackMATE/gtk-2.0/gtkrc pluma
For locally installed themes:
env GTK2_RC_FILES=$HOME/.themes/BlackMATE/gtk-2.0/gtkrc pluma
GTK3 Applications
As an example, I'll use the disk utility, gnome-d…