Ubuntu – Can I change the theme for only one program in Ubuntu 13.10

13.10icon-themesthemes

I want to change the theme that Inkscape uses to a dark one, but I want the rest of the programs I use to retain the theme they currently have.

I found this article (http://urukrama.wordpress.com/2008/07/13/setting-a-custom-gtk-theme-for-specific-applications/) but it seems to be outdated and doesn't work for me.

I'm running Ubuntu 13.10 and the version of inkscape I'm trying to apply a different theme to is 0.48.4. I can change the theme of inkscape by changing the global theme using unity tweak tool, but then all other programs change too.

Also, if there's any way to change the icon set for a specific application, I would like to do that as well.

Best Answer

See How can one make Firefox ignore my GTK theme entirely? for how to make gtk2 applications like Firefox or LibreOffice have distinct themes.

How do I find out if a program uses GTK 2 or 3? indicates that Inkscape is a gtk2 application.

For gtk3 applications, if your system's GTK3 version is higher than 3.10, you can use the GTK_THEME environment variable like this:

GTK_THEME=Adwaita:dark gnome-calculator 

I don't know about qt applications.


I use this script to launch LibreOffice with its own theme:

#!/usr/bin/env bash

GTK2_RC_FILES=/usr/share/themes/Numix/gtk-2.0/gtkrc libreoffice --calc
Related Question