mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Merge pull request #112999 from Meorge/feat/quick-load-icon
Add dedicated icon for Quick Load
This commit is contained in:
@@ -277,7 +277,7 @@ void EditorResourcePicker::_update_menu_items() {
|
||||
set_create_options(edit_menu);
|
||||
|
||||
// Add an option to load a resource from a file using the QuickOpen dialog.
|
||||
edit_menu->add_icon_item(get_editor_theme_icon(SNAME("Load")), TTR("Quick Load..."), OBJ_MENU_QUICKLOAD);
|
||||
edit_menu->add_icon_item(get_editor_theme_icon(SNAME("LoadQuick")), TTR("Quick Load..."), OBJ_MENU_QUICKLOAD);
|
||||
edit_menu->set_item_tooltip(-1, TTR("Opens a quick menu to select from a list of allowed Resource files."));
|
||||
|
||||
// Add an option to load a resource from a file using the regular file dialog.
|
||||
@@ -1047,7 +1047,7 @@ void EditorResourcePicker::_notification(int p_what) {
|
||||
edit_menu->add_theme_constant_override("icon_max_width", icon_width);
|
||||
}
|
||||
|
||||
quick_load_button->set_button_icon(get_editor_theme_icon(SNAME("Load")));
|
||||
quick_load_button->set_button_icon(get_editor_theme_icon(SNAME("LoadQuick")));
|
||||
edit_button->set_button_icon(get_theme_icon(SNAME("select_arrow"), SNAME("Tree")));
|
||||
} break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user