Merge pull request #18989 from YeldhamDev/filter_fancy

Small visual changes for some filter bars
This commit is contained in:
Rémi Verschelde 2018-05-18 12:46:48 +02:00 committed by GitHub
commit 11fd889b0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 9 deletions

View file

@ -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;
}
}

View file

@ -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();
// }