Skip to content

Commit f104326

Browse files
committed
Document focus StyleBox caveats in Introduction to GUI skinning
1 parent c28b11c commit f104326

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tutorials/ui/gui_skinning.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ a unique name and must be one of the following data types:
8686
not limited to the :ref:`Panel <class_Panel>` control, as styleboxes
8787
are used by many controls for their backgrounds and overlays.
8888

89+
Different controls will apply StyleBoxes in a different manner. Most notably,
90+
``focus`` styleboxes are drawn as an *overlay* to other styleboxes (such as
91+
``normal`` or ``pressed``) to allow the base stylebox to remain visible.
92+
This means the focus stylebox should be designed as an outline or translucent
93+
box, so that its background can remain visible.
94+
8995
Theme types
9096
~~~~~~~~~~~
9197

0 commit comments

Comments
 (0)