summaryrefslogtreecommitdiff
path: root/scene/resources/default_theme
diff options
context:
space:
mode:
authorgolfinq <golfinqz@gmail.com>2022-07-28 14:49:10 -0400
committergolfinq <golfinqz@gmail.com>2022-07-31 12:24:07 -0400
commitb341339415be2c07926fe3103f0064a8936d0390 (patch)
treee388fede228441355288a6cc62e1ff132fa92d85 /scene/resources/default_theme
parent2e05cc3314d0fd04f0e151ad0a827b34b28d8ece (diff)
Add padding options in theme for fg/bgcolor tags
Diffstat (limited to 'scene/resources/default_theme')
-rw-r--r--scene/resources/default_theme/default_theme.cpp3
1 files changed, 3 insertions, 0 deletions
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> &theme, const Ref<Font> &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"]);