浏览代码

Fix Add button style in GroupsEditor

Giganzo 1 年之前
父节点
当前提交
15f344173e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/groups_editor.cpp

+ 1 - 1
editor/groups_editor.cpp

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