Op 14-09-18 om 23:19 schreef c.buhtz--- via gtk-app-devel-list:
> I don't want to use colors defined by myself e.g. with RGB-values.
> I want to use colors from the system (Windows, Linux, ...) and/or the
> theme.
>
> For example I need the background color of a highlighted menu or list
> item.
>
> Is there a way?

There is but it is pretty much impossible to do the correct thing with
them. See my reply on your other question about the drag icon what you
should use.

If you want to explore what you do is get a Gtk.StyleContext from a
Gtk.Widget with Gtk.Widget.get_style_context(). It hold the information
you are looking for like font and colour information. You retrieve them
with Gtk.StyleContext.get_property() with a Gtk.STYLE_PROPERTY_*
property and Gtk.StateFlags.*.

~infirit
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to