Fix MenuButton style in editor top menu bar

This commit is contained in:
Giganzo 2025-02-10 10:03:54 +01:00
parent f418603522
commit f7b6f98215
8 changed files with 16 additions and 0 deletions

View file

@ -278,6 +278,8 @@ MeshLibraryEditor::MeshLibraryEditor() {
menu->set_position(Point2(1, 1));
menu->set_text(TTR("MeshLibrary"));
menu->set_button_icon(EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("MeshLibrary"), EditorStringName(EditorIcons)));
menu->set_flat(false);
menu->set_theme_type_variation("FlatMenuButton");
menu->get_popup()->add_item(TTR("Add Item"), MENU_OPTION_ADD_ITEM);
menu->get_popup()->add_item(TTR("Remove Selected Item"), MENU_OPTION_REMOVE_ITEM);
menu->get_popup()->add_separator();