Add browse folder and browse file icons

This commit is contained in:
Adam Scott 2024-02-25 13:10:29 -05:00
parent 22c20cea6e
commit 44d3ce2c11
No known key found for this signature in database
GPG key ID: 1352C2919D96DDDF
9 changed files with 39 additions and 3 deletions

View file

@ -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"));