mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Add missing SNAME macro optimization for StringName in some functions
This commit is contained in:
parent
75697c0dfd
commit
54de7114c5
14 changed files with 33 additions and 33 deletions
|
@ -114,8 +114,8 @@ void EditorCommandPalette::_update_command_search(const String &search_text) {
|
|||
section->set_text(0, item_name);
|
||||
section->set_selectable(0, false);
|
||||
section->set_selectable(1, false);
|
||||
section->set_custom_bg_color(0, search_options->get_theme_color("prop_subsection", "Editor"));
|
||||
section->set_custom_bg_color(1, search_options->get_theme_color("prop_subsection", "Editor"));
|
||||
section->set_custom_bg_color(0, search_options->get_theme_color(SNAME("prop_subsection"), SNAME("Editor")));
|
||||
section->set_custom_bg_color(1, search_options->get_theme_color(SNAME("prop_subsection"), SNAME("Editor")));
|
||||
|
||||
sections[section_name] = section;
|
||||
}
|
||||
|
@ -249,7 +249,7 @@ Ref<Shortcut> EditorCommandPalette::add_shortcut_command(const String &p_command
|
|||
}
|
||||
|
||||
void EditorCommandPalette::_theme_changed() {
|
||||
command_search_box->set_right_icon(search_options->get_theme_icon("Search", "EditorIcons"));
|
||||
command_search_box->set_right_icon(search_options->get_theme_icon(SNAME("Search"), SNAME("EditorIcons")));
|
||||
}
|
||||
|
||||
EditorCommandPalette *EditorCommandPalette::get_singleton() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue