Monday, January 11, 2010

Compact GTK themes for OpenERP

As addressed by Olivier in a previous post, when you run the OpenERP GTK client, you often see a waste of space due to the size of interface elements. This is the case with the theme Clearlooks under Linux/Gnome and with the theme Wimp (referred to as MS-Windows in the GTK theme selector) under Windows.

Thanks to the work of Martin Ankerl, I have created 2 compact themes optimized for OpenERP: Wimp Compact and Clearlooks Compact. Both of them work on Windows and allow to see much more data, particularly in list views. Following are screenshots of Wimp (classic theme), Wimp Compact (Classic theme), Wimp Compact (Vista theme), Clearlooks, Clearlooks Compact.


Wimp (Classic theme)


Wimp Compact (Classic theme) 


Wimp Compact (Vista theme)


Clearlooks


Clearlooks Compact

Installation under Windows
- Download this file: GTK-compact-themes-openerp.zip
- Extract it in \your_OpenERP_installation_folder\Client
- Run \
your_OpenERP_installation_folder\Client\GTK\bin\gtkthemeselector.exe
- Choose Wimp Compact or Clearlooks Compact
- Close OpenERP Client if it was running and restart it

One of the most visible values these themes change is the font size. By default, it is set for Tahoma 8pt. If you want to change that value for the Clearlooks Compact theme for example, you can open \your_OpenERP_installation_folder\Client\GTK\share\themes\Clearlooks Compact\gtk-2.0\gtkrc with a text editor and change the line font_name = "tahoma 8" to font_name = "tahoma 9"

We hope to introduce soon this particular font size value in the user preferences directly in OpenERP to ease this process.