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 Oct 10, 2024
1 parent 3ed0339 commit c15af19
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,13 +812,19 @@ 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.

.. _doc_bbcode_in_richtextlabel_hex_colors:

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>`__

Hexadecimal color codes
~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit c15af19

Please sign in to comment.