Browse Source

Update docs about named colors in RichTextLabel (#4648)

Co-authored-by: Hugo Locurcio <[email protected]>
Danil Alexeev 4 years ago
parent
commit
e4c408d326
1 changed files with 5 additions and 20 deletions
  1. 5 20
      tutorials/ui/bbcode_in_richtextlabel.rst

+ 5 - 20
tutorials/ui/bbcode_in_richtextlabel.rst

@@ -90,26 +90,11 @@ Reference
 | **cell**          | ``[cell]{text}[/cell]``                    | Adds cells with the {text} to the table.                        |
 | **cell**          | ``[cell]{text}[/cell]``                    | Adds cells with the {text} to the table.                        |
 +-------------------+--------------------------------------------+-----------------------------------------------------------------+
 +-------------------+--------------------------------------------+-----------------------------------------------------------------+
 
 
-Built-in color names
-~~~~~~~~~~~~~~~~~~~~
-
-List of valid color names for the [color=<name>] tag:
-
--  aqua
--  black
--  blue
--  fuchsia
--  gray
--  green
--  lime
--  maroon
--  navy
--  purple
--  red
--  silver
--  teal
--  white
--  yellow
+Named colors
+~~~~~~~~~~~~
+
+You can use the constants of the :ref:`class_Color` class for the ``[color=<name>]`` tag.
+The case and style of the name is not important: ``DARK_RED``, ``DarkRed`` and ``darkred`` will give the same result.
 
 
 Hexadecimal color codes
 Hexadecimal color codes
 ~~~~~~~~~~~~~~~~~~~~~~~
 ~~~~~~~~~~~~~~~~~~~~~~~