mirror of
https://github.com/godotengine/godot.git
synced 2024-11-23 20:53:15 +00:00
Merge pull request #71582 from Calinou/advanced-import-settings-improve-actions-visibility
Improve visibility of Actions button in Advanced import settings dialog
This commit is contained in:
commit
6119399fbd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user