Skip to content

Instantly share code, notes, and snippets.

View thearduinoguy's full-sized avatar

Mike McRoberts thearduinoguy

View GitHub Profile
@thearduinoguy
thearduinoguy / RichTextLabel.gd
Last active March 27, 2023 18:35
Godot RichTextLabel theming (Background colours, rounded corners, etc.)
extends Node
func _ready():
var rich_text_label = RichTextLabel.new() # Create a new RichTextLabel instance
add_child(rich_text_label) # Add the RichTextLabel as a child of the current node
var theme = Theme.new() # Create a new theme instance
var style_box = StyleBoxFlat.new() # Create a new style box instance
# Set the background color for the style box