On 04/18/17 02:52, cecas...@aol.com-san wrote:
If I use
gtk_style_context_add_class(context, "header");
As I replied, I fixed that problem to call
this.get_style_context().remove_class("csd") after set_titlebar(header) is
called.
Fujiwara
The background drawn to the event box window is t
If I use
gtk_style_context_add_class(context, "header");
The background drawn to the event box window is transparent on my computer. I
just used "menu" to test a different color from the theme but there are many
that you can test. The style classes are at the bottom of the documentation
page
I think your example still draws the green color of the hbox but not the theme
color of GtkHeaderBar.
I also think the menu and headerbar's colors are different.
Fujiwara
On 04/16/17 04:25, cecas...@aol.com-san wrote:
I gave it another try and "header" gtk_style_context_add_class() is transpa
I gave it another try and "header" gtk_style_context_add_class() is
transparent. I can use "menu" and that returns a darker color that is used on
the title bar.
It is C again. I did get foo.vala output to foo.c. Too much stuff.
Eric
/*
gcc -Wall box1.c -o box1 `pkg-config --cflags --libs
r. If I don't have a GtkHeaderBar widget I don't know how to get the
theme color for the header bar. Something else I haven't figured out yet. If
you get that figured out I would like to know myself.
Another option for a custom GtkHeaderBar is to use an event box and put the
On 04/15/17 04:36, cecas...@aol.com-san wrote:
I suspect
set_titlebar(header);
is causing the problem. If you remove that, then you will have a box that you
place in the main window. If it is a header bar box it will be below the
titlebar. The box itself is just doing the layout so it uses th
On 04/16/17 00:05, Takao Fujiwara-san wrote:
On 04/15/17 04:36, cecas...@aol.com-san wrote:
A little limited here since I don't have a C# setup and am using GTK3.18 which
doesn't have all the 3.22 functions. What OS are you using and how did
you setup C# for programming with?
Sorry, ignored t
On 04/15/17 04:36, cecas...@aol.com-san wrote:
A little limited here since I don't have a C# setup and am using GTK3.18 which
doesn't have all the 3.22 functions. What OS are you using and how did
you setup C# for programming with?
Sorry, ignored this question. Now I understood what you asked.
I suspect
set_titlebar(header);
is causing the problem. If you remove that, then you will have a box that you
place in the main window. If it is a header bar box it will be below the
titlebar. The box itself is just doing the layout so it uses the window behind
it. You can draw on the win
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
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
I could resolve this issue to call this.get_style_context().remove_class("csd")
after set_titlebar(header) is called.
But not sure why I have to remove "csd" class while it's a custom header.
Fujiwara
On 04/11/17 21:33, Takao Fujiwara-san wrote:
I'd like to c
I'd like to create a custom GtkHeaderBar in GTK 3.22.
If I use GtkBox as the header, it can draw the background color.
If I use a class inherited from GtkBox, it draws the transparent color.
Seems GtkBox uses rgba from ".titlebar:not(headerbar)" of gtk-contained.css:1736 but the
13 matches
Mail list logo