You are not logged in.

#1 2015-05-03 22:59:47

mot.def
Member
Registered: 2011-07-03
Posts: 19

[SOLVED] Changing menubar colour in GTK+2 apps

74c308f7f4.png

I have been attempting to match the menubar colour in GTK themes to that of my i3 borders, however none of the gtk-color-scheme parameters in gtkrc seem to affect the menubar (see the contrast between the i3 title bar and the Firefox menu above). Is the parameter to change this colour stored elsewhere? I'm not using a desktop environment at the moment but I'm considering trying to get one to run alongside i3 to make theme customisation a little easier...

Last edited by mot.def (2015-05-06 19:37:55)

Offline

#2 2015-05-03 23:09:00

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,718
Website

Re: [SOLVED] Changing menubar colour in GTK+2 apps

Not sure about firefox, but in palemoon, the tabbar gets it's colour from the following line in my .gtkrc:

bg[NORMAL] = "#FFF3B3"

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2015-05-04 00:08:34

bleach
Member
Registered: 2013-07-26
Posts: 264

Re: [SOLVED] Changing menubar colour in GTK+2 apps

have you tried somthing like gcolor2 to match the color(without having to look at it with an editor) with its color choser and then imputing that color into your i3 config if its the title bar.

you could also make it so gtk matched the title if thats the color you want as WorMzy sugests.

Last edited by bleach (2015-05-04 00:22:34)

Offline

#4 2015-05-04 09:01:19

mot.def
Member
Registered: 2011-07-03
Posts: 19

Re: [SOLVED] Changing menubar colour in GTK+2 apps

bg[normal] seems to affect the colour of the window beneath the menu bar, but not the menu bar itself. I just ran a comparison on the gtkrc files of a theme (Siva Flat) and its variant with a dark menu bar and there were no differences found, which to me indicates that the parameter I'm looking for is stored elsewhere.

Offline

#5 2015-05-06 19:40:00

mot.def
Member
Registered: 2011-07-03
Posts: 19

Re: [SOLVED] Changing menubar colour in GTK+2 apps

Turns out the menu bar tiles a .png rather than taking a flat hex value, presumably so users can create gradated menus and such.

Offline

Board footer

Powered by FluxBB