Frame: Enhance CSS docs
Note optional .flat class and that the old shadow types are replaced by CSS border-style et al.; quote names of nodes & classes for readability.
This commit is contained in:
@ -74,17 +74,18 @@
|
|||||||
*
|
*
|
||||||
* |[<!-- language="plain" -->
|
* |[<!-- language="plain" -->
|
||||||
* frame
|
* frame
|
||||||
* ├── border
|
* ├── border[.flat]
|
||||||
* ├── <label widget>
|
* ├── <label widget>
|
||||||
* ╰── <child>
|
* ╰── <child>
|
||||||
* ]|
|
* ]|
|
||||||
*
|
*
|
||||||
* GtkFrame has a main CSS node with name frame and a subnode with
|
* GtkFrame has a main CSS node named “frame” and a subnode named “border”. The
|
||||||
* name border. The border node is used to render the visible border.
|
* “border” node is used to draw the visible border. You can set the appearance
|
||||||
|
* of the border using CSS properties like “border-style” on the “border” node.
|
||||||
*
|
*
|
||||||
* The border node can be given the style class .flat, which is used by themes
|
* The border node can be given the style class “.flat”, which is used by themes
|
||||||
* to disable drawing of the border. To do this from code, call
|
* to disable drawing of the border. To do this from code, call
|
||||||
* gtk_frame_set_shadow_type() with %GTK_SHADOW_NONE to add the .flat class or
|
* gtk_frame_set_shadow_type() with %GTK_SHADOW_NONE to add the “.flat” class or
|
||||||
* any other shadow type to remove it.
|
* any other shadow type to remove it.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user