Web lists-archives.com

Re: They broke the CSS custom color settings in 3.20




On 12.11, Stefan Salewski wrote:
> Setting the colors was
> done this way for GTK 3.18:
> 
> const
>   str0 = ".tooltip {background-color: rgba($1, $2, $3, 0.9); color: rgba($4, $5, $6, 1.0); \n}"

it's tooltip { background-color: foobar }.
Unless the theme sets a background image of course, in which case your
background-color won't have any effect...

> Even for a simple test application setting of background color seems
> not to work any more:
>
> https://github.com/ngtk3/nim-gtk3/blob/master/test/colors.nim

It's label{} for labels, entry{} for entries, etc. The documentation
under https://developer.gnome.org/gtk3/stable/GtkEntry.html contains a
"CSS Nodes" section explaining how to target the individual nodes of the
widget.
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list