summaryrefslogtreecommitdiffstats
path: root/editor/project_manager.cpp
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2024-10-09 15:21:47 -0700
committerAaron Franke <arnfranke@yahoo.com>2024-10-29 16:23:03 -0700
commit562c666e3dfc9f0fe72a33974c23373dff77c825 (patch)
tree9d703690d34b0221fc8fa0738cab3a7a697419ba /editor/project_manager.cpp
parent0debc73dc6eb2c1a4986766506180394e69bda11 (diff)
downloadredot-engine-562c666e3dfc9f0fe72a33974c23373dff77c825.tar.gz
Rename internal Button icon to button_icon to match exposed methods
Diffstat (limited to 'editor/project_manager.cpp')
-rw-r--r--editor/project_manager.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp
index 30878a2488..30cf2030bc 100644
--- a/editor/project_manager.cpp
+++ b/editor/project_manager.cpp
@@ -224,7 +224,7 @@ void ProjectManager::_update_theme(bool p_skip_creation) {
background_panel->add_theme_style_override(SceneStringName(panel), get_theme_stylebox(SNAME("Background"), EditorStringName(EditorStyles)));
main_view_container->add_theme_style_override(SceneStringName(panel), get_theme_stylebox(SceneStringName(panel), SNAME("TabContainer")));
- title_bar_logo->set_icon(get_editor_theme_icon(SNAME("TitleBarLogo")));
+ title_bar_logo->set_button_icon(get_editor_theme_icon(SNAME("TitleBarLogo")));
_set_main_view_icon(MAIN_VIEW_PROJECTS, get_editor_theme_icon(SNAME("ProjectList")));
_set_main_view_icon(MAIN_VIEW_ASSETLIB, get_editor_theme_icon(SNAME("AssetLib")));
@@ -234,28 +234,28 @@ void ProjectManager::_update_theme(bool p_skip_creation) {
loading_label->add_theme_font_override(SceneStringName(font), get_theme_font(SNAME("bold"), EditorStringName(EditorFonts)));
project_list_panel->add_theme_style_override(SceneStringName(panel), get_theme_stylebox(SNAME("project_list"), SNAME("ProjectManager")));
- empty_list_create_project->set_icon(get_editor_theme_icon(SNAME("Add")));
- empty_list_import_project->set_icon(get_editor_theme_icon(SNAME("Load")));
- empty_list_open_assetlib->set_icon(get_editor_theme_icon(SNAME("AssetLib")));
+ empty_list_create_project->set_button_icon(get_editor_theme_icon(SNAME("Add")));
+ empty_list_import_project->set_button_icon(get_editor_theme_icon(SNAME("Load")));
+ empty_list_open_assetlib->set_button_icon(get_editor_theme_icon(SNAME("AssetLib")));
empty_list_online_warning->add_theme_font_override(SceneStringName(font), get_theme_font(SNAME("italic"), EditorStringName(EditorFonts)));
empty_list_online_warning->add_theme_color_override(SceneStringName(font_color), get_theme_color(SNAME("font_placeholder_color"), EditorStringName(Editor)));
// Top bar.
search_box->set_right_icon(get_editor_theme_icon(SNAME("Search")));
- quick_settings_button->set_icon(get_editor_theme_icon(SNAME("Tools")));
+ quick_settings_button->set_button_icon(get_editor_theme_icon(SNAME("Tools")));
// Sidebar.
- create_btn->set_icon(get_editor_theme_icon(SNAME("Add")));
- import_btn->set_icon(get_editor_theme_icon(SNAME("Load")));
- scan_btn->set_icon(get_editor_theme_icon(SNAME("Search")));
- open_btn->set_icon(get_editor_theme_icon(SNAME("Edit")));
- run_btn->set_icon(get_editor_theme_icon(SNAME("Play")));
- rename_btn->set_icon(get_editor_theme_icon(SNAME("Rename")));
- manage_tags_btn->set_icon(get_editor_theme_icon("Script"));
- erase_btn->set_icon(get_editor_theme_icon(SNAME("Remove")));
- erase_missing_btn->set_icon(get_editor_theme_icon(SNAME("Clear")));
- create_tag_btn->set_icon(get_editor_theme_icon("Add"));
+ create_btn->set_button_icon(get_editor_theme_icon(SNAME("Add")));
+ import_btn->set_button_icon(get_editor_theme_icon(SNAME("Load")));
+ scan_btn->set_button_icon(get_editor_theme_icon(SNAME("Search")));
+ open_btn->set_button_icon(get_editor_theme_icon(SNAME("Edit")));
+ run_btn->set_button_icon(get_editor_theme_icon(SNAME("Play")));
+ rename_btn->set_button_icon(get_editor_theme_icon(SNAME("Rename")));
+ manage_tags_btn->set_button_icon(get_editor_theme_icon("Script"));
+ erase_btn->set_button_icon(get_editor_theme_icon(SNAME("Remove")));
+ erase_missing_btn->set_button_icon(get_editor_theme_icon(SNAME("Clear")));
+ create_tag_btn->set_button_icon(get_editor_theme_icon("Add"));
tag_error->add_theme_color_override(SceneStringName(font_color), get_theme_color("error_color", EditorStringName(Editor)));
tag_edit_error->add_theme_color_override(SceneStringName(font_color), get_theme_color("error_color", EditorStringName(Editor)));
@@ -310,17 +310,17 @@ void ProjectManager::_set_main_view_icon(MainViewTab p_id, const Ref<Texture2D>
Button *toggle_button = main_view_toggle_map[p_id];
- Ref<Texture2D> old_icon = toggle_button->get_icon();
+ Ref<Texture2D> old_icon = toggle_button->get_button_icon();
if (old_icon.is_valid()) {
old_icon->disconnect_changed(callable_mp((Control *)toggle_button, &Control::update_minimum_size));
}
if (p_icon.is_valid()) {
- toggle_button->set_icon(p_icon);
+ toggle_button->set_button_icon(p_icon);
// Make sure the control is updated if the icon is reimported.
p_icon->connect_changed(callable_mp((Control *)toggle_button, &Control::update_minimum_size));
} else {
- toggle_button->set_icon(Ref<Texture2D>());
+ toggle_button->set_button_icon(Ref<Texture2D>());
}
}