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 /editor/editor_themes.cpp | |
parent | eec38da856686ea13b1373958b5e2d38edcc8dbf (diff) | |
parent | 1c6ea572ca818562fba51a01e08345d3657142c9 (diff) |
Merge pull request #18146 from mjtorn/gh-mjtorn-rtl-shadow
Implement font shadows for RichTextLabel
Diffstat (limited to 'editor/editor_themes.cpp')
-rw-r--r-- | editor/editor_themes.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp index 3582379e34..e93df835e4 100644 --- a/editor/editor_themes.cpp +++ b/editor/editor_themes.cpp @@ -891,6 +891,10 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) { //RichTextLabel theme->set_color("default_color", "RichTextLabel", font_color); + theme->set_color("font_color_shadow", "RichTextLabel", Color(0, 0, 0, 0)); + theme->set_constant("shadow_offset_x", "RichTextLabel", 1 * EDSCALE); + theme->set_constant("shadow_offset_y", "RichTextLabel", 1 * EDSCALE); + theme->set_constant("shadow_as_outline", "RichTextLabel", 0 * EDSCALE); theme->set_stylebox("focus", "RichTextLabel", make_empty_stylebox()); theme->set_stylebox("normal", "RichTextLabel", style_tree_bg); |