1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10: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:
Thaddeus Crews
2025-04-10 10:18:10 -05:00
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();