From 2a6837d8de1c2059bec50479ff4891bf7fb67f0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pa=CC=84vels=20Nadtoc=CC=8Cajevs?= <7645683+bruvzg@users.noreply.github.com> Date: Fri, 13 Jun 2025 08:57:35 +0300 Subject: [PATCH] Add HR bbcode info. --- tutorials/ui/bbcode_in_richtextlabel.rst | 55 +++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/tutorials/ui/bbcode_in_richtextlabel.rst b/tutorials/ui/bbcode_in_richtextlabel.rst index 164ffe99e..792cfb552 100644 --- a/tutorials/ui/bbcode_in_richtextlabel.rst +++ b/tutorials/ui/bbcode_in_richtextlabel.rst @@ -282,6 +282,13 @@ Reference - ``[br]`` + * - | **hr** + | Adds new a horizontal rule to separate content. Supports configuration options, + see :ref:`doc_bbcode_in_richtextlabel_hr_options`. + + - | ``[hr]`` + | ``[hr {options}]`` + * - | **center** | Makes ``{text}`` horizontally centered. | Same as ``[p align=center]``. @@ -601,6 +608,52 @@ For example: [url={"example": "value"}]JSON[/url] +.. _doc_bbcode_in_richtextlabel_hr_options: + +Horizontal rule options +~~~~~~~~~~~~~~~~~~~~~~~ + +- **color** + + +-----------+--------------------------------------------+ + | `Values` | Color name or color in HEX format | + +-----------+--------------------------------------------+ + | `Default` | ``Color(1, 1, 1, 1)`` | + +-----------+--------------------------------------------+ + + Color tint of the rule (modulation). + +- **height** + + +-----------+--------------------------------------------+ + | `Values` | Integer number | + +-----------+--------------------------------------------+ + | `Default` | ``2`` | + +-----------+--------------------------------------------+ + + Target height of the rule in pixels, add ``%`` to the end of value to specify it as percentages of the control width instead of pixels. + +- **width** + + +-----------+--------------------------------------------+ + | `Values` | Integer number | + +-----------+--------------------------------------------+ + | `Default` | ``90%`` | + +-----------+--------------------------------------------+ + + Target width of the rule in pixels, add ``%`` to the end of value to specify it as percentages of the control width instead of pixels. + +- **align** + + +-----------+----------------------------------------------------------------------------------------+ + | `Values` | ``left`` (or ``l``), ``center`` (or ``c``), ``right`` (or ``r``) | + +-----------+----------------------------------------------------------------------------------------+ + | `Default` | ``left`` | + +-----------+----------------------------------------------------------------------------------------+ + + Horizontal alignment. + + .. _doc_bbcode_in_richtextlabel_image_options: Image options @@ -634,7 +687,7 @@ Image options | `Default` | Inherit | +-----------+--------------------------------------------+ - Target width of the image, add ``%`` to the end of value to specify it as percentages of the control width instead of pixels. + Target width of the image in pixels, add ``%`` to the end of value to specify it as percentages of the control width instead of pixels. - **region**