Fix incorrect error label color when switching from light to dark theme

This commit is contained in:
Yuri Roubinsky 2019-11-14 13:16:25 +03:00
parent a1c396e55c
commit 0ec76d40b4
2 changed files with 6 additions and 2 deletions

View file

@ -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: {