From bebd5b86c48874abb27bce0d3d4ab697730283fc Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 10 Oct 2024 15:27:47 +0200 Subject: [PATCH] Add color constants reference to BBCode in RichTextLabel This reference is already present in the Color class reference, but this embeds it directly in the page to save users a click. --- tutorials/ui/bbcode_in_richtextlabel.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tutorials/ui/bbcode_in_richtextlabel.rst b/tutorials/ui/bbcode_in_richtextlabel.rst index 24b1a4c93c1..68d3d0992f1 100644 --- a/tutorials/ui/bbcode_in_richtextlabel.rst +++ b/tutorials/ui/bbcode_in_richtextlabel.rst @@ -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 `__ + .. _doc_bbcode_in_richtextlabel_hex_colors: Hexadecimal color codes