mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #102786 from Giganzo/top-toolbar-menu-button-styles
Fix MenuButton style in editor top menu bar
This commit is contained in:
commit
ef3e8b1609
8 changed files with 16 additions and 0 deletions
|
|
@ -118,6 +118,8 @@ ParticlesEditorPlugin::ParticlesEditorPlugin() {
|
|||
|
||||
menu = memnew(MenuButton);
|
||||
menu->set_switch_on_hover(true);
|
||||
menu->set_flat(false);
|
||||
menu->set_theme_type_variation("FlatMenuButton");
|
||||
toolbar->add_child(menu);
|
||||
menu->get_popup()->connect(SceneStringName(id_pressed), callable_mp(this, &ParticlesEditorPlugin::_menu_callback));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue