diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2023-01-17 22:27:06 +0100 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2023-01-17 22:27:06 +0100 |
commit | ebb6894652ed5c6a8134884c00c47a70ba17de6f (patch) | |
tree | 78dfa7b44ea6da274b5686b8561b6fab4e837712 /editor/import | |
parent | 1d8e739a9d3dd4769dfe71ba6ef9008a149b9ae1 (diff) |
Improve visibility of Actions button in Advanced import settings dialog
Diffstat (limited to 'editor/import')
-rw-r--r-- | editor/import/scene_import_settings.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/editor/import/scene_import_settings.cpp b/editor/import/scene_import_settings.cpp index 60415ff926..044f7475c2 100644 --- a/editor/import/scene_import_settings.cpp +++ b/editor/import/scene_import_settings.cpp @@ -1236,6 +1236,12 @@ SceneImportSettings::SceneImportSettings() { action_menu = memnew(MenuButton); action_menu->set_text(TTR("Actions...")); + // Style the MenuButton like a regular Button to make it more noticeable. + action_menu->set_flat(false); + action_menu->add_theme_style_override("normal", get_theme_stylebox("normal", "Button")); + action_menu->add_theme_style_override("hover", get_theme_stylebox("hover", "Button")); + action_menu->add_theme_style_override("pressed", get_theme_stylebox("pressed", "Button")); + action_menu->set_focus_mode(Control::FOCUS_ALL); menu_hb->add_child(action_menu); action_menu->get_popup()->add_item(TTR("Extract Materials"), ACTION_EXTRACT_MATERIALS); |