summaryrefslogtreecommitdiffstats
path: root/editor/plugins/lightmap_gi_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-09-25 17:18:29 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-09-25 17:18:29 +0200
commit8ddf73c74dfa6ca51462a4721d77ba84e813b51a (patch)
tree22887982e518ef8753d27933e3b29a8462e52afb /editor/plugins/lightmap_gi_editor_plugin.cpp
parent3e15c8f28597df4354b40ba85056e87cfac56845 (diff)
parent4bd569be95f0e8ba34813b0d8fc53bab1125ccaa (diff)
downloadredot-engine-8ddf73c74dfa6ca51462a4721d77ba84e813b51a.tar.gz
Merge pull request #81939 from YuriSizov/gui-flat-and-depressed
Replace flat buttons with flat-styled buttons with a visible pressed state
Diffstat (limited to 'editor/plugins/lightmap_gi_editor_plugin.cpp')
-rw-r--r--editor/plugins/lightmap_gi_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/lightmap_gi_editor_plugin.cpp b/editor/plugins/lightmap_gi_editor_plugin.cpp
index 7664739480..11f60a166c 100644
--- a/editor/plugins/lightmap_gi_editor_plugin.cpp
+++ b/editor/plugins/lightmap_gi_editor_plugin.cpp
@@ -168,7 +168,7 @@ void LightmapGIEditorPlugin::_bind_methods() {
LightmapGIEditorPlugin::LightmapGIEditorPlugin() {
bake = memnew(Button);
- bake->set_flat(true);
+ bake->set_theme_type_variation("FlatButton");
// TODO: Rework this as a dedicated toolbar control so we can hook into theme changes and update it
// when the editor theme updates.
bake->set_icon(EditorNode::get_singleton()->get_editor_theme()->get_icon(SNAME("Bake"), EditorStringName(EditorIcons)));