Change Miro theme linux

From Miro User Documentation

Jump to: navigation, search

Contents

Introduction

Miro uses the Gimp Tool Kit (GTK) to draw the interface, buttons, lists, etc.
This gives the user the power to change the default look of Miro, even without affecting the rest of the application.

What is a GTK theme

Basically it is a text file, where you can define the size of the font, the colors, etc. Because is possible to use an image file as part of the theme, you may also need those images.

Getting a theme

Your distribution must have at least one gtk theme in the package manager, and probably more.
You can also download one from gnome-look.org, find one on the web or even make your own!
This is really a matter of personal taste. So download a few and try them all.

Changing the theme

The steps to change the theme vary, based on exactly what you want to change.

Change the theme globally:

This might vary depending on your distribution, and I strongly discourage it, but it is good to know.

If you don't have any specific setting, GTK uses the theme in /usr/share/themes/Default
To change it: backup the original, and replace it with a copy of the one you want to use. Be sure you rename the new one to "Default".

Change the theme for one user:

If you use Gnome, this Desktop Manager sets the theme for you. On KDE or others Desktop Managers or Window Managers, you can launch "gnome-setting-daemon" at startup (that will use your gnome config). If you dont want to have this daemon runing, edit the file called ~/.gtkrc-2.0.
In that file you can include the theme you like, here is an example file:

include "/usr/share/themes/Raleigh/gtk-2.0/gtkrc"

That is the entire contents of the file gtkrc-2.0. Of course, the referenced file must exist, and be a gtk theme.

You can also put any option found in a gtkrc file.

Software that make this for you:

The best one is gtk-chtheme, which you can find in your distro's package manager or get it from here.

Change the theme of one application:

You can use the variable GTK2_RC_FILES, to point to the theme file you want to use for a specific application.

  GTK2_RC_FILES=/usr/share/themes/HighContrastInverse/gtk-2.0/gtkrc miro

Make an script with this, so it always use that theme.

Personal tools