Godot Engine – Multi-platform 2D and 3D game engine
Change icon for reordering of array elements in inspector
Giganzo123d0191f0b0
diff --git a/editor/inspector/editor_inspector.cpp b/editor/inspector/editor_inspector.cppindex a14053ee457..36191ccd347 100644--- a/editor/inspector/editor_inspector.cpp+++ b/editor/inspector/editor_inspector.cpp@@ -3458,7 +3458,7 @@ void EditorInspectorArray::_setup() {ae.move_texture_rect->set_default_cursor_shape(Control::CURSOR_MOVE);if (is_inside_tree()) {- ae.move_texture_rect->set_texture(get_editor_theme_icon(SNAME("TripleBar")));+ ae.move_texture_rect->set_texture(get_editor_theme_icon(SNAME("DragHandle")));}move_vbox->add_child(ae.move_texture_rect);@@ -3604,7 +3604,7 @@ void EditorInspectorArray::_notification(int p_what) {for (ArrayElement &ae : array_elements) {if (ae.move_texture_rect) {- ae.move_texture_rect->set_texture(get_editor_theme_icon(SNAME("TripleBar")));+ ae.move_texture_rect->set_texture(get_editor_theme_icon(SNAME("DragHandle")));}if (ae.move_up) {ae.move_up->set_button_icon(get_editor_theme_icon(SNAME("MoveUp")));diff --git a/editor/inspector/editor_properties_array_dict.cpp b/editor/inspector/editor_properties_array_dict.cppindex 39950b5714d..de526dc4a08 100644--- a/editor/inspector/editor_properties_array_dict.cpp+++ b/editor/inspector/editor_properties_array_dict.cpp@@ -334,7 +334,7 @@ void EditorPropertyArray::_create_new_property_slot() {Button *reorder_button = memnew(Button);reorder_button->set_accessibility_name(TTRC("Reorder"));- reorder_button->set_button_icon(EditorIconManager::get_icon(SNAME("TripleBar")));+ reorder_button->set_button_icon(EditorIconManager::get_icon(SNAME("DragHandle")));reorder_button->set_default_cursor_shape(Control::CURSOR_MOVE);reorder_button->set_disabled(is_read_only());reorder_button->set_theme_type_variation(SNAME("EditorInspectorFlatButton"));