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.

6 comments:

  1. IMHO a very usefull option
    I use clearlooks compact on Linux ....

    I just wonder if these 2 themes could be packed into a module or into the client ?
    OpenERP should run "out of the box" optimized to be enterprise ready.
    I do not see users nor administators adapting each client manually.

    ReplyDelete
  2. Love it, using your Wimp compact theme when I need to demo/test OpenERP on my Windows VM now.

    And since a GTK application can manage and package its own GTK themes we could offer some sort of theme selection in the GTK client, with a decent compact theme included by default.

    ReplyDelete
  3. I tried to put the theme, but the themes selector I can not list the other themes, which may be missing?

    ReplyDelete
  4. I tried to put the theme, but the themes selector I can not list the other themes, which may be missing?

    In Windows Vista, and with openerp 5.0.14

    ReplyDelete
  5. Me too i had that same problem, what should i do?


    mind if I put a link back to you?
    3 Button Suit
    anyway I'm william

    ReplyDelete
  6. INCREDIBLE! It seems like informative blog. I can see there is quite informative topics When you run the OpenERP GTK client, you often see a waste of space due to the size of interface elements.
    sap support pack

    ReplyDelete