6 myths to go by
- Theming Gnome is hard to do: Well, actually it is pretty easy, once you understand how Gnome displays its windows and widgets
- There is no documentation around: It's true that the Gnome technical library is somewhat sparse, incomplete and sometimes error prone. However, there are some links to good documentation. And there is the source code of course.
- Better modify an existing theme: This is a definitive NO NO as far as I am concerned. You most likely add more junk to the underlying theme, making it even more unusable.
- There are no debugging tools around: While it is true that most tools advertised to be helpful are ancient and most likely not working properly, there are few tools that help you develop and test your theme (I will cover them later).
- One can download everything from the web: There is art.gnome.org. And - yes - there are window themes, icon themes, wallpaper, logon themes and bootsplash screens. But this does not make for great design. What's missing is a thorough and complete design. That cannot be downloaded.
- A good theme has to be better than Windows or Mac OSX: I'm afraid, the only thing a good theme can do is put Ubuntu / Linux on par with both former mentioned. Everything important was built into those GUIs and Linux mimics most of the style guides.
This is a list of links that I found helpful:
Designing Metacity Themes - HOWTO
Understanding Metacity Themes
Metacity - Wikipedia, the free encyclopedia
Welcome | Murrine
Individuelle Metacity-Themen für GNOME
Understanding Metacity themes
After experimenting with some tools that claim to help develop themes, I found these the most helpful:
- metacity-theme-viewer: this shows the window frames for all 6 window types
- metacity-window-demo: a tool to investigate gtkrc settings. It helps to optimize GTK layout
- gconftool-2 (actually gconftool-2 --type=string --set /apps/metacity/general/theme themename): sets and resets themes
- GTK_RC_FILES=~/.themes/mytheme/gtk-2.0/gtkrc Gnomeapp: this starts the gnome application with the corresponding gtkrc file. Helps to optimize GTK settings for applications and widgets.
- gtk-chtheme: a small utility to select themes and preview the GTK widgets. Currently I have not found a better tool.
- gtk-demo: even though it documents some of the widgets, it is outdated
- The Widget factory: acclaimed to be the tool of choice to present themes on art.gnome.org, this is nothing more than a showcase. Outdated
- gtk-theme-switch2: while not completely useless, it seems outdated. Some of the widgets are not shown (like scroll bars and handles). Use gtk-chtheme instead.
I will publish it on SourceForge when I have tested it more thoroughly.
I also plan to write a compendium in how to write your own theme and publish it under Creative Commons. This will take some time, but I keep up to it.
Comments are welcome, hints appreciated.