Re: Classic menus ignore gtkrc text color
Stanimir Stamenkov <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.unix,gmane.comp.mozilla.devel.gtk |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Ian Pilcher wrote:
> I am using Mozilla 1.2.1 on Red Hat Linux 9 with KDE's "CDE" color
> scheme. This color scheme uses white text on a gray background for
> text widgets, and it creates the following gtkrc file:
>
> style "default"
> {
> bg[NORMAL] = { 0.600, 0.600, 0.600 }
> bg[SELECTED] = { 0.196, 0.384, 0.518 }
> bg[INSENSITIVE] = { 0.600, 0.600, 0.600 }
> bg[ACTIVE] = { 0.498, 0.498, 0.498 }
> bg[PRELIGHT] = { 0.600, 0.600, 0.600 }
>
> base[NORMAL] = { 0.506, 0.506, 0.506 }
> base[SELECTED] = { 0.196, 0.384, 0.518 }
> base[INSENSITIVE] = { 0.600, 0.600, 0.600 }
> base[ACTIVE] = { 0.506, 0.506, 0.506 }
> base[PRELIGHT] = { 0.506, 0.506, 0.506 }
>
> text[NORMAL] = { 1.000, 1.000, 1.000 }
> text[SELECTED] = { 1.000, 1.000, 1.000 }
> text[INSENSITIVE] = { 0.498, 0.498, 0.498 }
> text[ACTIVE] = { 1.000, 1.000, 1.000 }
> text[PRELIGHT] = { 1.000, 1.000, 1.000 }
>
> fg[NORMAL] = { 1.000, 1.000, 1.000 }
> fg[SELECTED] = { 1.000, 1.000, 1.000 }
> fg[INSENSITIVE] = { 0.498, 0.498, 0.498 }
> fg[ACTIVE] = { 1.000, 1.000, 1.000 }
> fg[PRELIGHT] = { 1.000, 1.000, 1.000 }
> }
>
> class "*" style "default"
>
> Mozilla's Classic theme uses white text for most widgets, including the
> Navigation Toolbar and the Personal Toolbar, but menus are still drawn
> with black text.
>
> Is there something else that should be set in the gtkrc, or is this a
> bug/broken as designed?
>
I think Mozilla uses .gtkrc-kde file instead of .gtkrc or
.gtkrc-2.0. Just copy the contents of your .gtkrc to .gtkrc-kde.
--
Stanimir <stanio(_at_)gbg.bg>