summaryrefslogtreecommitdiff
path: root/editor/editor_help.cpp
diff options
context:
space:
mode:
authorYuri Roubinsky <chaosus89@gmail.com>2019-11-14 13:16:25 +0300
committerYuri Roubinsky <chaosus89@gmail.com>2019-11-14 13:34:56 +0300
commit0ec76d40b45d220bcc5d0cdff07f1278c7409f22 (patch)
treed8c2e535d8ca397c26439c249c8c18bcddbdac8b /editor/editor_help.cpp
parenta1c396e55cbab681740e8d743fe16178eae0f643 (diff)
Fix incorrect error label color when switching from light to dark theme
Diffstat (limited to 'editor/editor_help.cpp')
-rw-r--r--editor/editor_help.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp
index cf54847922..4f7432cd65 100644
--- a/editor/editor_help.cpp
+++ b/editor/editor_help.cpp
@@ -1716,6 +1716,7 @@ void FindBar::_notification(int p_what) {
hide_button->set_hover_texture(get_icon("Close", "EditorIcons"));
hide_button->set_pressed_texture(get_icon("Close", "EditorIcons"));
hide_button->set_custom_minimum_size(hide_button->get_normal_texture()->get_size());
+ matches_label->add_color_override("font_color", results_count > 0 ? get_color("font_color", "Label") : get_color("error_color", "Editor"));
} break;
case NOTIFICATION_VISIBILITY_CHANGED: {