You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Fix MenuButton style in editor top menu bar
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user