Browse Source

Merge pull request #97319 from Giganzo/groups-add-button-style

Fix Add button style in GroupsEditor
Rémi Verschelde 11 months ago
parent
commit
e3aa152509
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/groups_editor.cpp

+ 1 - 1
editor/groups_editor.cpp

@@ -840,7 +840,7 @@ GroupsEditor::GroupsEditor() {
 	add_child(hbc);
 	add_child(hbc);
 
 
 	add = memnew(Button);
 	add = memnew(Button);
-	add->set_flat(true);
+	add->set_theme_type_variation("FlatMenuButton");
 	add->set_tooltip_text(TTR("Add a new group."));
 	add->set_tooltip_text(TTR("Add a new group."));
 	add->connect(SceneStringName(pressed), callable_mp(this, &GroupsEditor::_show_add_group_dialog));
 	add->connect(SceneStringName(pressed), callable_mp(this, &GroupsEditor::_show_add_group_dialog));
 	hbc->add_child(add);
 	hbc->add_child(add);