mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 13:49:54 +00:00
Merge pull request #112999 from Meorge/feat/quick-load-icon
Add dedicated icon for Quick Load
This commit is contained in:
commit
90235fddeb
2 changed files with 3 additions and 2 deletions
1
editor/icons/LoadQuick.svg
Normal file
1
editor/icons/LoadQuick.svg
Normal file
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill="#e0e0e0" d="M11.206,15l-8.206,0c-1.097,0 -2,-0.903 -2,-2l0,-9c-0,-1.097 0.903,-2 2,-2l2,0c1.097,0 2,0.903 2,2l4,0c0.549,0 1,0.451 1,1l-5,0c-0.549,0 -1,-0.451 -1,-1c0,-0.549 -0.451,-1 -1,-1l-2,0c-0.549,0 -1,0.451 -1,1l0,9c0,0.549 0.451,1 1,1c0.552,0 0.909,-0.455 1,-1l1,-6c0.091,-0.545 0.448,-1 1,-1l8,0c0.549,0 1,0.451 1,1l-0.382,2.294l-1.09,-0l-0,-0.994l-0.068,-0.414l-0.19,-0.363l-0.293,-0.286l-0.378,-0.183l-0.416,-0.053l-0.402,0.078l-0.358,0.2l-0.283,0.309l-2.418,3.694l-0.151,0.317l-0.06,0.34l0.031,0.344l0.124,0.329l0.208,0.284l0.27,0.215l0.318,0.135l0.348,0.048l1.172,-0l0,0.994l0.068,0.414l0.156,0.298Z"/><path fill="#ffdd65" d="M11.982,12.294l0,1.994c0,0.132 0.087,0.249 0.214,0.287c0.128,0.038 0.265,-0.012 0.337,-0.123l2.418,-3.694c0.06,-0.092 0.065,-0.21 0.013,-0.307c-0.052,-0.097 -0.154,-0.157 -0.264,-0.157l-2.172,-0l-0,-1.994c-0,-0.133 -0.088,-0.25 -0.215,-0.287c-0.127,-0.038 -0.264,0.012 -0.336,0.123l-2.418,3.694c-0.061,0.092 -0.065,0.21 -0.013,0.307c0.052,0.096 0.154,0.157 0.264,0.157l2.172,-0Z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue