Re: [gtkmm] widget coloring and (some) themes...
- From: "B.Hakvoort" <bart hakvoort be>
- To: gtkmm-list gnome org
- Subject: Re: [gtkmm] widget coloring and (some) themes...
- Date: Thu, 02 Sep 2004 16:19:01 +0200
hmm, no responses sofar..
To clearify the problem i've created a small testcase. The program shows
a window of 150x150 with inside it an eventbox with a yellow
backgroundcolor.
Try changing your desktop theme to Crux or SmokeyBlue and see the color
disappear.
Then start working on a solution and send it to me asap :-P
cheers,
Bart
On Wed, 2004-09-01 at 16:54, B.Hakvoort wrote:
> Hey,
>
> Only lately i noticed some themes don't handle widgetcolors very well.
> A backgroundcolor which has been set by :
>
> awidget .modify_bg( awidget .get_state(), Gdk::Color some_color );
>
> Shows up correctly with most of the themes, but not in:
> - crux
> - smokey blue
> ( i've only tested the themes that come with a default gnomeinstall )
>
> Are these themes flawed or is there another way to set a widget
> backgroundcolor?
>
> Regards,
>
> Bart
--
www.titanium-it.nl --- Open Minded Open Source
www.real-life.nl <-----Another Source
#include <gtkmm.h>
int main(int argc, char *argv[])
{
Gtk::Main kit(argc, argv);
Gtk::Window w;
Gtk::EventBox eventbox;
Gdk::Color color( "yellow" ) ;
eventbox .set_above_child( false ) ;
eventbox .modify_bg(eventbox .get_state(), color);
w .add( eventbox ) ;
w .set_default_size( 150, 150 ) ;
w .show_all() ;
Gtk::Main::run( w );
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]