summaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorGwyneth Lowe <GlaceGwyneth@gmail.com>2019-06-23 22:43:52 -0500
committerGwyneth Lowe <GlaceGwyneth@gmail.com>2019-06-24 20:00:05 -0500
commit45f78d786a76001325bd598ec6a330117831e07f (patch)
tree45fb9a1225300795a2a5de0a2cddb05c3c520df2 /scene/resources
parentf07e5ac1533ed5563b3ffc75a243e3444c2645b8 (diff)
Give TextEdit a custom color for font when read only is set
Previously there was some transparency hard coded into TextEdit when in read only mode. This change adds a custom color for adjusting the font in read only mode. It also applies when syntax highlighting is on.
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/default_theme/default_theme.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp
index 42b445b59c..4e2fe1f9b2 100644
--- a/scene/resources/default_theme/default_theme.cpp
+++ b/scene/resources/default_theme/default_theme.cpp
@@ -440,6 +440,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
theme->set_color("completion_font_color", "TextEdit", Color::html("aaaaaa"));
theme->set_color("font_color", "TextEdit", control_font_color);
theme->set_color("font_color_selected", "TextEdit", Color(0, 0, 0));
+ theme->set_color("font_color_readonly", "TextEdit", Color(control_font_color.r, control_font_color.g, control_font_color.b, 0.5f));
theme->set_color("selection_color", "TextEdit", font_color_selection);
theme->set_color("mark_color", "TextEdit", Color(1.0, 0.4, 0.4, 0.4));
theme->set_color("bookmark_color", "TextEdit", Color(0.08, 0.49, 0.98));