[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: GtkText Widget question
- From: J Blunck tu-harburg de
- To: akrishna julian uwo ca
- cc: gtk-app-devel-list redhat com
- Subject: Re: GtkText Widget question
- Date: Sun, 29 Aug 1999 20:31:53 +0200 (CEST)
On 29 Aug, Ajit Krishnan wrote:
> J.Blunck@tu-harburg.de [J.Blunck@tu-harburg.de] wrote:
>> On 28 Aug, J.Blunck@tu-harburg.de wrote:
>> > How can I change the colour of the font in a text widget by default ?
>> > I added a widget_class "*Text* to my gtkrc but the font is always black.
>> >
>> > Any hints ?
>> >
>> > Jan
>>
>> I got it myself. Thanks,
>
> would you mind sharing the answer with the rest of us?
>
> thanks,
> ajit
>
Oooh, yeah! It's a top secret answer. Coming strait from KGB labs ;-)
For entries the font color changes when you define fg[] = {}. But its
different for GtkText Widgets. You have to define text[] = {} to change
the font color. Here is my gtkrc snippet for this:
-8<--
style "text"
{
fg[SELECTED] = { 0.99, 0.99, 0.99 }
bg[SELECTED] = { 0.60, 0.60, 0.60 }
base[NORMAL] = { 0.0, 0.0, 0.0 }
fg[NORMAL] = { 0.60, 0.60, 0.60 }
text[NORMAL] = { 0.60, 0.60, 0.60 }
}
widget_class "*GtkText" style "text"
-8<--
Regards,
Jan
--
"May the source be with you !"
--
Jan Blunck Technische Universität Hamburg-Harburg
J.Blunck@tu-harburg.de http://www.tu-harburg.de/~sejb3103/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]