summaryrefslogtreecommitdiffstats
path: root/editor/fbx_importer_manager.cpp
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/fbx_importer_manager.cpp
parent22c20cea6e59a8a95585adb866c007a55c428806 (diff)
downloadredot-engine-44d3ce2c11b844d919e363f5cb15f1c03ad3f77e.tar.gz
Add browse folder and browse file icons
Diffstat (limited to 'editor/fbx_importer_manager.cpp')
-rw-r--r--editor/fbx_importer_manager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/fbx_importer_manager.cpp b/editor/fbx_importer_manager.cpp
index 07854af23e..2049ac9344 100644
--- a/editor/fbx_importer_manager.cpp
+++ b/editor/fbx_importer_manager.cpp
@@ -39,6 +39,10 @@
void FBXImporterManager::_notification(int p_what) {
switch (p_what) {
+ case NOTIFICATION_THEME_CHANGED: {
+ fbx_path_browse->set_icon(get_editor_theme_icon(SNAME("FileBrowse")));
+ } break;
+
case NOTIFICATION_READY: {
connect("confirmed", callable_mp(this, &FBXImporterManager::_path_confirmed));
} break;
@@ -148,9 +152,9 @@ FBXImporterManager::FBXImporterManager() {
fbx_path->set_h_size_flags(Control::SIZE_EXPAND_FILL);
hb->add_child(fbx_path);
fbx_path_browse = memnew(Button);
- hb->add_child(fbx_path_browse);
fbx_path_browse->set_text(TTR("Browse"));
fbx_path_browse->connect("pressed", callable_mp(this, &FBXImporterManager::_browse_install));
+ hb->add_child(fbx_path_browse);
hb->set_h_size_flags(Control::SIZE_EXPAND_FILL);
hb->set_custom_minimum_size(Size2(400 * EDSCALE, 0));