Re: I have a problem with GtkRadioButton



yeajchao wrote:

   I have a problem with GtkRadioButton.
   You know,when you select a GtkRadioButton,there
will be a "big point" placed in the circle of the
radio button .It maybe called "indicator".
   My problem is that: I want to change the
indicator's color to red or some other color,but I
don't know how to do that.
[...]
I tried to edit my gtkrc file 
but this seems just change the "text"'s color of the 

In many (if not most) GTK+ themes the knobs of radiobuttons are bitmaps
(images). So their color (or appearance at all) cannot be changed easily
by a program. Nor are they supposed to be easily changeable. The same is
true for the checkmarks of checkboxes, btw.

Always consider that appearance of widgets is determined by themes to a
great extent. GTK+ users are used to that. Most of them really don't
like single applications looking different in a custom way the user
cannot control. This has become common practice for many "modern",
gaudy, native Windows applications, and especially games. Many of them
use custom widget sets specific to the company (and the application).
The philosophy of GTK+ is just the opposite.

There are the weirdest themes around and in use. Imagine there are even
themes around where every text and every bitmap is red(ish) by default,
so your custom color change wouldn't make sense anyway.

However, the need for some applications to use fixed colours like green,
yellow and red to indicate things like error-free results, warnings,
error messages or critical choices / operations is recognized. That's
why you can rather easily change colours and appearances of texts on
screen. See the following URL for an overview of how to change text
appearances of markup-enabled widgets even easier than tweaking themes:

http://developer.gnome.org/doc/API/2.0/pango/PangoMarkupFormat.html



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]