Skip to content

Commit

Permalink
Add color constants reference to BBCode in RichTextLabel
Browse files Browse the repository at this point in the history
This reference is already present in the Color class reference,
but this embeds it directly in the page to save users a click.
  • Loading branch information
Calinou committed Nov 11, 2024
1 parent 15908c2 commit bebd5b8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tutorials/ui/bbcode_in_richtextlabel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -812,11 +812,17 @@ Font options
Named colors
~~~~~~~~~~~~

For tags that allow specifying a color by name you can use names of the constants from
For tags that allow specifying a color by name, you can use names of the constants from
the built-in :ref:`class_Color` class. Named classes can be specified in a number of
styles using different casings: ``DARK_RED``, ``DarkRed``, and ``darkred`` will give
the same exact result.

See this image for a list of color constants:

.. image:: /img/color_constants.png

`View at full size <https://raw.githubusercontent.com/godotengine/godot-docs/master/img/color_constants.png>`__

.. _doc_bbcode_in_richtextlabel_hex_colors:

Hexadecimal color codes
Expand Down

0 comments on commit bebd5b8

Please sign in to comment.