Add missing SNAME macro optimization for StringName in some functions
This commit is contained in:
@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user