From 03a6b0d926ca42ba12743211341182469754fe57 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Thu, 17 May 2018 21:45:12 -0300 Subject: [PATCH] Small visual changes for some filter bars. --- editor/groups_editor.cpp | 3 +++ editor/inspector_dock.cpp | 11 ++--------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/editor/groups_editor.cpp b/editor/groups_editor.cpp index 8443311a546..e42f9780a6b 100644 --- a/editor/groups_editor.cpp +++ b/editor/groups_editor.cpp @@ -286,6 +286,9 @@ void GroupDialog::_notification(int p_what) { case NOTIFICATION_ENTER_TREE: { add_button->set_icon(get_icon("Forward", "EditorIcons")); remove_button->set_icon(get_icon("Back", "EditorIcons")); + + add_filter->add_icon_override("right_icon", get_icon("Search", "EditorIcons")); + remove_filter->add_icon_override("right_icon", get_icon("Search", "EditorIcons")); } break; } } diff --git a/editor/inspector_dock.cpp b/editor/inspector_dock.cpp index 1967aac507b..4159a3658ee 100644 --- a/editor/inspector_dock.cpp +++ b/editor/inspector_dock.cpp @@ -523,6 +523,8 @@ InspectorDock::InspectorDock(EditorNode *p_editor, EditorData &p_editor_data) { search = memnew(LineEdit); search->set_h_size_flags(Control::SIZE_EXPAND_FILL); + search->set_placeholder(TTR("Filter properties")); + search->add_icon_override("right_icon", get_icon("Search", "EditorIcons")); add_child(search); warning = memnew(Button); @@ -560,12 +562,3 @@ InspectorDock::InspectorDock(EditorNode *p_editor, EditorData &p_editor_data) { InspectorDock::~InspectorDock() { } - -// void InspectorDock::_clear_search_box() { - -// if (search_box->get_text() == "") -// return; - -// search_box->clear(); -// inspector->update_tree(); -// } \ No newline at end of file