Search code examples
cssgtk3

Where can I find better documentation for the CSS properties of GTK widgets?


I'm working on learning the CSS styling part of GTK3, and I have noticed that the reference GTK documention talks about the CSS nodes that get created, but not what properties are valid for the component.

For instance, GtkSeparator includes this as the full CSS documentation:

GtkSeparator has a single CSS node with name separator. The node gets one of the .horizontal or .vertical style classes.

This describes to me how to address this component in the stylesheet, but it took an hour of trial and error to figure out that the color for this component is controlled by the background-color attribute, not the color attribute.

I am having similar problems with GtkComboBox where the documentation lists the node hierarchy, but not what the nodes correspond to visually or what properties are valid for them.

Is there more detailed documentation for each component, especially listing valid properties and what the properties correspond to visually?


Solution

  • I just found this:

    https://docs.gtk.org/gtk3/css-properties.html

    I guess it is as accurate as the rest of the Gtk documentation...