RE: Progress bar colours



Thank you for your reply. Can't the programme just change the relevant aspects of the theme, to change the way the progress bar is drawn under certain circumstances?

Tom
________________________________________
From: gtkmm-list-bounces gnome org [gtkmm-list-bounces gnome org] on behalf of Yann LEYDIER [yann leydier info]
Sent: 27 August 2011 12:33
To: gtkmm-list gnome org
Subject: 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…

yann

On 27/08/11 13:28, Thomas Harty wrote:
> Hi,
>
> 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.
> http://www.mail-archive.com/gtk-list gnome org/msg13767.html and
> http://markmail.org/message/zirxleljlithtiel) 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.
>
> Tom
>
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list

_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list


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