Skip to content

Commit 09cf8c9

Browse files
authored
Merge pull request #10775 from Calinou/bbcode-in-richtextlabel-fgcolor-bgcolor-padding
Document `fgcolor` and `bgcolor` highlight padding in BBCode in RichTextLabel
2 parents a907b23 + 46471a1 commit 09cf8c9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tutorials/ui/bbcode_in_richtextlabel.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,12 +389,20 @@ Reference
389389
* - | **bgcolor**
390390
| Draws the color behind ``{text}``. This can be used to highlight text.
391391
Accepts same values as the ``color`` tag.
392+
By default, there is a slight padding which is controlled by the
393+
``text_highlight_h_padding`` and ``text_highlight_v_padding`` theme items
394+
in the RichTextLabel node. Set padding to ``0`` to avoid potential overlapping
395+
issues when there are background colors on neighboring lines/columns.
392396
393397
- ``[bgcolor={code/name}]{text}[/bgcolor]``
394398

395399
* - | **fgcolor**
396400
| Draws the color in front of ``{text}``. This can be used to "redact" text by using
397401
an opaque foreground color. Accepts same values as the ``color`` tag.
402+
By default, there is a slight padding which is controlled by the
403+
``text_highlight_h_padding`` and ``text_highlight_v_padding`` theme items
404+
in the RichTextLabel node. Set padding to ``0`` to avoid potential overlapping
405+
issues when there are foreground colors on neighboring lines/columns.
398406
399407
- ``[fgcolor={code/name}]{text}[/fgcolor]``
400408

0 commit comments

Comments
 (0)