diff options
author | Markus Törnqvist <mjt@nysv.org> | 2018-04-11 16:08:56 +0300 |
---|---|---|
committer | Markus Törnqvist <mjt@fadgames.com> | 2018-04-12 15:09:48 +0300 |
commit | 1c6ea572ca818562fba51a01e08345d3657142c9 (patch) | |
tree | ae93226e095fa076dd6f1938f125d1f27e7b4cc2 /scene/resources | |
parent | 23fc8ca223acb7a2150a57280a3ddf9abac575e3 (diff) |
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); |