From facfae36713372cde930598d0993c535ff6ac324 Mon Sep 17 00:00:00 2001 From: Yuri Roubinsky Date: Thu, 14 Nov 2019 09:38:53 +0300 Subject: Fix "matches" label color in light theme --- editor/code_editor.cpp | 2 +- editor/editor_help.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index 1a821ddd02..7d47568c41 100644 --- a/editor/code_editor.cpp +++ b/editor/code_editor.cpp @@ -328,7 +328,7 @@ void FindReplaceBar::_update_matches_label() { } else { matches_label->show(); - matches_label->add_color_override("font_color", results_count > 0 ? Color(1, 1, 1) : EditorNode::get_singleton()->get_gui_base()->get_color("error_color", "Editor")); + matches_label->add_color_override("font_color", results_count > 0 ? get_color("font_color", "Label") : get_color("error_color", "Editor")); matches_label->set_text(vformat(results_count == 1 ? TTR("%d match.") : TTR("%d matches."), results_count)); } } diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index dd49e38d7f..cf54847922 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -1802,7 +1802,7 @@ void FindBar::_update_matches_label() { } else { matches_label->show(); - matches_label->add_color_override("font_color", results_count > 0 ? Color(1, 1, 1) : EditorNode::get_singleton()->get_gui_base()->get_color("error_color", "Editor")); + matches_label->add_color_override("font_color", results_count > 0 ? get_color("font_color", "Label") : get_color("error_color", "Editor")); matches_label->set_text(vformat(results_count == 1 ? TTR("%d match.") : TTR("%d matches."), results_count)); } } -- cgit v1.2.3