From b341339415be2c07926fe3103f0064a8936d0390 Mon Sep 17 00:00:00 2001 From: golfinq Date: Thu, 28 Jul 2022 14:49:10 -0400 Subject: Add padding options in theme for fg/bgcolor tags --- scene/resources/default_theme/default_theme.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scene/resources') diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp index 520a0a04ed..5ae0312313 100644 --- a/scene/resources/default_theme/default_theme.cpp +++ b/scene/resources/default_theme/default_theme.cpp @@ -965,6 +965,9 @@ void fill_default_theme(Ref &theme, const Ref &default_font, const theme->set_color("table_even_row_bg", "RichTextLabel", Color(0, 0, 0, 0)); theme->set_color("table_border", "RichTextLabel", Color(0, 0, 0, 0)); + theme->set_constant("text_highlight_h_padding", "RichTextLabel", 3 * scale); + theme->set_constant("text_highlight_v_padding", "RichTextLabel", 3 * scale); + // Containers theme->set_icon("grabber", "VSplitContainer", icons["vsplitter"]); -- cgit v1.2.3