Godot - Changing the Text Color of a RichTextLabel
This code example shows how to change the default text color in a RichTextLabel using GDScript.
This method is not available for the Label node.
You can change the default text color in RichTextLabel by specifying the `default_color` property with `add_theme_color_override()
`.
var label = RichTextLabel.new()
add_child(label)
label.global_position = Vector2(0, 0)
label.size = Vector2(200,200)
label.text = "Change Font Color"
# Change the default text color in RichTextLabel
label.add_theme_color_override("default_color", Color("#FF2222", 1))