summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authortoger5 <toger5@hotmail.de>2017-09-27 19:24:05 +0200
committertoger5 <toger5@hotmail.de>2017-09-28 14:17:14 +0200
commitd58a159e3864bf6664851022bd26a7a98dc7fcf5 (patch)
tree9d8056dc69b16510f4ca4c626017083d1bb6516b /editor
parent3d06957f12ba5c04702f3db980af9c07142e7886 (diff)
keep font color on selection as default
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_help.cpp1
-rw-r--r--editor/editor_themes.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp
index 6c8bd0f14b..c4200b330c 100644
--- a/editor/editor_help.cpp
+++ b/editor/editor_help.cpp
@@ -1903,5 +1903,6 @@ EditorHelpBit::EditorHelpBit() {
rich_text->set_area_as_parent_rect();
rich_text->connect("meta_clicked", this, "_meta_clicked");
rich_text->add_color_override("selection_color", EDITOR_DEF("text_editor/highlighting/selection_color", Color(0.2, 0.2, 1)));
+ rich_text->set_override_selected_font_color(false);
set_custom_minimum_size(Size2(0, 70 * EDSCALE));
}
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp
index 3482261c19..1ae898c471 100644
--- a/editor/editor_themes.cpp
+++ b/editor/editor_themes.cpp
@@ -837,7 +837,7 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
const Color caret_color = mono_color;
const Color caret_background_color = mono_color.inverted();
const Color text_selected_color = dark_color_3;
- const Color selection_color = alpha3;
+ const Color selection_color = alpha2;
const Color brace_mismatch_color = error_color;
const Color current_line_color = alpha1;
const Color line_length_guideline_color = warning_color;