Skip to content

Commit 3d87a07

Browse files
authored
Merge pull request #10313 from Calinou/gui-skinning-focus
Document focus StyleBox caveats in Introduction to GUI skinning
2 parents c28b11c + f104326 commit 3d87a07

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)