Mac Menu GTK compatible themes

On 15 November 2007, in applications, computing, by ayoli

Here’s an (non exhaustive) list of mac menu compatible themes for gtk :


You can also hack your theme, like I did. I edited the gtkrc file of the theme I use. (the gtkrc file of your theme is located under ~/.themes/[YOUR_THEME_NAME]/gtk-2.0/gtkrc)

here’s the code I added in my gtkrc file :
...

	
  1. menu bar style

  2. style “theme-menubar”
    { xthickness = 0 ythickness = 0 #bg[NORMAL] = ”#000000” bg_pixmap[NORMAL]= “panel-bg.png” fg[NORMAL] = ”#ffffff” fg[PRELIGHT] = ”#ffffff” fg[ACTIVE] = ”#555555” fg[SELECTED] = ”#555555”
    engine “pixmap”
    {
    image
    {
    function= BOX
    state = NORMAL
    file= “panel-bg.png”
    border= { 0, 0, 0, 0 }
    stretch= TRUE } }
    }

    class “GtkMenuBar” style “theme-menubar”

  3. panel style
  4. style “panelbg” { xthickness = 0 ythickness = 0 bg_pixmap[NORMAL]= “panel-bg.png” fg[NORMAL] = ”#ffffff” fg[PRELIGHT] = ”#ffffff” fg[ACTIVE] = ”#555555” fg[SELECTED] = ”#555555”

    } #class “Panel” style “panelbg”
    widget “PanelApplet” style “panelbg”
    class “notif” style “panelbg”
    class “Notif” style “panelbg”
    class “Tray” style “panelbg”
    class “tray” style “panelbg”
    class “Netstatus” style “panelbg”
    class “netstatus” style “panelbg”
    class “Deskbar” style “panelbg”
    class “deskbar” style “panelbg”


I saved the panel-bg.png image in the same directory as the gtkrc file, and also used this png as panel background image (right click on the panel, choose properties, then background tab where you specify the background image location).
Note: you may have to play with the height of the png file and the height of the panel (using panel properties dialog)

Tagged with:  

6 Responses to “Mac Menu GTK compatible themes”

  1. geek says:

    Nice tip, man. I always get frustrated when finding a theme that’s not compatible with macmenu applet; this is a great solution. :-)

  2. ayoli says:

    Thank you :)

  3. jaiguru says:

    Nice tip, but it seems it doesn’t work with murrina engine based themes. The appname part of the macmenu is OK, but the menu itself has no background. Have you tried it with murrine ?

  4. ayoli says:

    yep, I used a murrine style before (now I’m using an aurora style).
    Check you havent more than one style for the menu bar in your gtkrc file.
    If you still have the prob try to post me your gtkrc (please use pastebin.com or something like that). I’ll try to debug it.
    Happy new year :)

  5. alphageek says:

    Hey ayoli. I need help getting the mac menu to work with an Aurora engine theme. Do you know what else I should change in this gtkrc? I left out the mac menu hack (because it’s the same as the one you have above).

    When I tested the theme, the menubar part was still inconsistent with the rest of the panel.

  6. ayoli says:

    Hi alphageek,
    You need to replace the menu style (line 220 of your gtkrc) with the first part of the gtkrc extract above (the one about menu style). Find a png image that fit your needs and copy it in the directory of your theme (same folder as the gtkrc file of your theme).
    Then copy the second part of the above extract at the end of your gtkrc file using the same png.
    You will also need to set panel background (using panel properties dialog) with this png.
    Note: these modifications to your theme requires the pixmap engine.

Leave a Reply

WordPress主题

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!