window: Add some more details to css docs
authorMatthias Clasen <mclasen@redhat.com>
Sun, 14 Feb 2021 16:22:44 +0000 (11:22 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 14 Feb 2021 16:22:44 +0000 (11:22 -0500)
Mention more of the supported style classes.

gtk/gtkwindow.c

index ac7f05073880459762ee97b10b30c97099304313..b4de2cc97c9f23799986d9d3069a0db62656f73d 100644 (file)
  * # CSS nodes
  *
  * |[<!-- language="plain" -->
- * window.background
+ * window.background [.csd / .solid-csd / .ssd] [.maximized / .fullscreen / .tiled]
  * ├── <child>
  * ╰── <titlebar child>.titlebar [.default-decoration]
  * ]|
  * client-side decorations are in use), .solid-csd (for client-side decorations
  * without invisible borders), .ssd (used by mutter when rendering server-side
  * decorations). GtkWindow also represents window states with the following
- * style classes on the main node: .tiled, .maximized, .fullscreen. Specialized
- * types of window often add their own discriminating style classes, such as
- * .popup or .tooltip.
+ * style classes on the main node: .maximized, .fullscreen, .tiled (when supported,
+ * also .tiled-top, .tiled-left, .tiled-right, .tiled-bottom).
+ *
+ * GtkWindow subclasses often add their own discriminating style classes,
+ * such as .dialog, .popup or .tooltip.
  *
  * Generally, some CSS properties don't make sense on the toplevel window node,
  * such as margins or padding. When client-side decorations without invisible