Re: Progress bar colours

Hi !

Depending on your Gtk theme, progress bars can be animated pixbufs, so I doubt you can change the color programmatically.

If I had to do this, I would create a custom widget containing a drawing area…


On 27/08/11 13:28, Thomas Harty wrote:

I want to use a progress bar to display temperatures and it'd be very
useful to be able to make bar change colour to indicate any problems.
I've done some reading and the best references (e.g. gnome org/msg13767.html and I could find suggest that
it should be possible to change the colour of the bar using
override_background_color with the state flag PRELIGHT and to change the
color of the trough using override_background_color with the state flag
NORMAL. However, when I do this, I find that the
override_background_color with prelight does nothing and with the normal
flag, it changes the colour of both the slider and the trough.

Some of the comments I've seen make it seem as thought this should be
done using style files, but I couldn't find anything explaining how.

Any light that anyone could throw on this would be appreciated.


gtkmm-list mailing list
gtkmm-list gnome org

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