summaryrefslogtreecommitdiffstats
path: root/editor/project_manager
diff options
context:
space:
mode:
authorAdam Scott <ascott.ca@gmail.com>2024-02-25 13:10:29 -0500
committerAdam Scott <ascott.ca@gmail.com>2024-03-12 09:57:59 -0400
commit44d3ce2c11b844d919e363f5cb15f1c03ad3f77e (patch)
tree3a717033c09a1171f0171a8669d328389b0bec6f /editor/project_manager
parent22c20cea6e59a8a95585adb866c007a55c428806 (diff)
downloadredot-engine-44d3ce2c11b844d919e363f5cb15f1c03ad3f77e.tar.gz
Add browse folder and browse file icons
Diffstat (limited to 'editor/project_manager')
-rw-r--r--editor/project_manager/project_dialog.cpp10
-rw-r--r--editor/project_manager/project_dialog.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/editor/project_manager/project_dialog.cpp b/editor/project_manager/project_dialog.cpp
index 350bb5bb9f..81fdf9c369 100644
--- a/editor/project_manager/project_dialog.cpp
+++ b/editor/project_manager/project_dialog.cpp
@@ -778,6 +778,16 @@ void ProjectDialog::show_dialog() {
popup_centered(Size2(500, 0) * EDSCALE);
}
+void ProjectDialog::_notification(int p_what) {
+ switch (p_what) {
+ case NOTIFICATION_THEME_CHANGED: {
+ create_dir->set_icon(get_editor_theme_icon(SNAME("FolderCreate")));
+ project_browse->set_icon(get_editor_theme_icon(SNAME("FolderBrowse")));
+ install_browse->set_icon(get_editor_theme_icon(SNAME("FolderBrowse")));
+ } break;
+ }
+}
+
void ProjectDialog::_bind_methods() {
ADD_SIGNAL(MethodInfo("project_created"));
ADD_SIGNAL(MethodInfo("projects_updated"));
diff --git a/editor/project_manager/project_dialog.h b/editor/project_manager/project_dialog.h
index 1418edc57f..8517189e5a 100644
--- a/editor/project_manager/project_dialog.h
+++ b/editor/project_manager/project_dialog.h
@@ -129,6 +129,7 @@ private:
protected:
static void _bind_methods();
+ void _notification(int p_what);
public:
void set_mode(Mode p_mode);