diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2018-05-05 07:01:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-05 07:01:04 +0200 |
commit | fc9fad925b7e406729748660d9079011cb40a96b (patch) | |
tree | 8a7c486693cf89c0896da7d8164a180c46b9bccb /scene/resources | |
parent | eec38da856686ea13b1373958b5e2d38edcc8dbf (diff) | |
parent | 1c6ea572ca818562fba51a01e08345d3657142c9 (diff) |
Merge pull request #18146 from mjtorn/gh-mjtorn-rtl-shadow
Implement font shadows for RichTextLabel
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/default_theme/default_theme.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp index ea70797530..2e652a00f9 100644 --- a/scene/resources/default_theme/default_theme.cpp +++ b/scene/resources/default_theme/default_theme.cpp @@ -818,6 +818,12 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const theme->set_color("font_color_selected", "RichTextLabel", font_color_selection); theme->set_color("selection_color", "RichTextLabel", Color(0.1, 0.1, 1, 0.8)); + theme->set_color("font_color_shadow", "RichTextLabel", Color(0, 0, 0, 0)); + + theme->set_constant("shadow_offset_x", "RichTextLabel", 1 * scale); + theme->set_constant("shadow_offset_y", "RichTextLabel", 1 * scale); + theme->set_constant("shadow_as_outline", "RichTextLabel", 0 * scale); + theme->set_constant("line_separation", "RichTextLabel", 1 * scale); theme->set_constant("table_hseparation", "RichTextLabel", 3 * scale); theme->set_constant("table_vseparation", "RichTextLabel", 3 * scale); |