Re: Custom GtkHeaderBar

2017-04-13 Thread Takao Fujiwara
Thanks for the example. But I'd pull the CSS color of GtkHeaderBar to follow the theme colors instead of the hardcoded draw_box(). As I attached in the previous mail, calling gtk_widget_class_set_css_name(class, "headerbar") can set the themed background-color but the behavior is different betwe

Re: Custom GtkHeaderBar

2017-04-13 Thread Eric Cashon via gtk-app-devel-list
Hi Fujiwara, The GtkBox is going to use the background window for it's color. The box just does the layout. If you create a header bar from a box you will have to draw on the background where your header bar is going to be. This can get a little tricky to get the measurements that you need. A