diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-09-19 18:03:10 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-09-19 22:36:29 +0200 |
commit | 4bd569be95f0e8ba34813b0d8fc53bab1125ccaa (patch) | |
tree | fd74d6aacd1f1fa8d92fa61acd36d96023504579 /editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp | |
parent | 571cd0eb791b37e9a8adda9f909251138170f6b7 (diff) | |
download | redot-engine-4bd569be95f0e8ba34813b0d8fc53bab1125ccaa.tar.gz |
Replace flat buttons with flat-styled buttons with a visible pressed state
Diffstat (limited to 'editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp b/editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp index c7d7cc7918..99a702f3a4 100644 --- a/editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp +++ b/editor/plugins/gpu_particles_collision_sdf_editor_plugin.cpp @@ -183,7 +183,7 @@ GPUParticlesCollisionSDF3DEditorPlugin::GPUParticlesCollisionSDF3DEditorPlugin() bake_hb->set_h_size_flags(Control::SIZE_EXPAND_FILL); bake_hb->hide(); bake = memnew(Button); - bake->set_flat(true); + bake->set_theme_type_variation("FlatButton"); bake->set_icon(EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("Bake"), EditorStringName(EditorIcons))); bake->set_text(TTR("Bake SDF")); bake->connect("pressed", callable_mp(this, &GPUParticlesCollisionSDF3DEditorPlugin::_bake)); |