This is completely trivial, but maybe it's an easy answer. It has (AFAIK) to do with GTK theming, but I'm seeing it only on Geany.
I run Geany on both RHEL and Windows (Vista currently ... grrr :-). On Windows, under the Classic Windows theme the background of the highlighted menu item picks up the default selection color properly, but the foreground (text) remains black. I've looked over the GTK site, etc., played with C:\Program Files\Geany\etc\gtk-2.0\gtkrc (msw-default style definition) and managed to affect a few things here and there. But I was never successful in changing the hightlighted menu text color. Looking through the GTK docs for the proper way to do this reminds me a bit of asking how to get across town and being told how to build a car. :-)
Does anyone know offhand what needs to be set to accomplish what I'm trying to do?
Thanks.
-- Len Philpot - l e n @ p h i l p o t . o r g (no spaces)
Read my story: http://www.mostimportantthing.org
On 02/25/11 20:46, Len Philpot wrote:
This is completely trivial, but maybe it's an easy answer. It has (AFAIK) to do with GTK theming, but I'm seeing it only on Geany.
I run Geany on both RHEL and Windows (Vista currently ... grrr :-). On Windows, under the Classic Windows theme the background of the highlighted menu item picks up the default selection color properly, but the foreground (text) remains black. I've looked over the GTK site, etc., played with C:\Program Files\Geany\etc\gtk-2.0\gtkrc (msw-default style definition) and managed to affect a few things here and there. But I was never successful in changing the hightlighted menu text color. Looking through the GTK docs for the proper way to do this reminds me a bit of asking how to get across town and being told how to build a car. :-)
Does anyone know offhand what needs to be set to accomplish what I'm trying to do?
I think its:
style "menu" ... { ... fg[PRELIGHT] = <color> ... }
And/or:
style "menu-item" ... { ... fg[PRELIGHT] = <color> ... }
Just looking at one of the gtkrc files on my system.
Cheers, Matthew Brush
[ From Geany general discussion list (Matthew Brush) on Saturday, February 26, 2011 ]
Does anyone know offhand what needs to be set to accomplish what I'm trying to do?
I think its:
style "menu" ... { ... fg[PRELIGHT] = <color>
I read the description of PRELIGHT to mean the colow when a widget is hovered over... maybe I was wrong? At any rate, I tried this without success, but I could be missing it syntactically.
I've since discovered two things:
1. The selected text is indeed the right color if the (default and IMO, ugly) Vista theme is used at the system level 2. It does indeed behave the same in at least one other GTK app (Gimp). I thought Geany was the only one, but was mistaken.
Thanks.
-- Len Philpot - l e n @ p h i l p o t . o r g (no spaces)
Read my story: http://www.mostimportantthing.org
On 26 February 2011 23:46, Len Philpot len@philpot.org wrote:
[ From Geany general discussion list (Matthew Brush) on Saturday, February 26, 2011 ]
Does anyone know offhand what needs to be set to accomplish what I'm trying to do?
I think its:
style "menu" ... { ... fg[PRELIGHT] = <color>
I read the description of PRELIGHT to mean the colow when a widget is hovered over... maybe I was wrong? At any rate, I tried this without success, but I could be missing it syntactically.
I've since discovered two things:
- The selected text is indeed the right color if the (default and IMO,
ugly) Vista theme is used at the system level 2. It does indeed behave the same in at least one other GTK app (Gimp). I thought Geany was the only one, but was mistaken.
Thanks.
Check which version of GTK you are using, IIUC only versions 2.16 and 2.22+ do theming properly in windows. The ones in between are broken.
Cheers Lex
-- Len Philpot - l e n @ p h i l p o t . o r g (no spaces)
Read my story: http://www.mostimportantthing.org _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
[ From (Lex Trotman) on Saturday, February 26, 2011 ]
Check which version of GTK you are using, IIUC only versions 2.16 and 2.22+ do theming properly in windows. The ones in between are broken. Cheers Lex
I've got whatever was bundled with Geany 0.20 (2.16, I believe?). It could well be my far-from-competent understanding of theming. I've not really had time to read up on it, much less how it applies to Windows (if any differently). A few days ago (not related to this question) tried installing Geany w/o GTK and installing separately what I downloaded from gtk.org, but ended up with DLL problems. I didn't have time to investigate, so I just un/reinstalled the bundled Geany release instead. Otherwise, everything works fine. Kinda wish there was VTE for Windows, but the real solution to that is to just run it on *nix. (not to mention the other benefits :-)
Thanks.
-- Len Philpot - l e n @ p h i l p o t . o r g (no spaces)
Read my story: http://www.mostimportantthing.org