diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-09-25 17:18:29 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-09-25 17:18:29 +0200 |
commit | 8ddf73c74dfa6ca51462a4721d77ba84e813b51a (patch) | |
tree | 22887982e518ef8753d27933e3b29a8462e52afb /modules/gridmap/editor/grid_map_editor_plugin.cpp | |
parent | 3e15c8f28597df4354b40ba85056e87cfac56845 (diff) | |
parent | 4bd569be95f0e8ba34813b0d8fc53bab1125ccaa (diff) | |
download | redot-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 'modules/gridmap/editor/grid_map_editor_plugin.cpp')
-rw-r--r-- | modules/gridmap/editor/grid_map_editor_plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gridmap/editor/grid_map_editor_plugin.cpp b/modules/gridmap/editor/grid_map_editor_plugin.cpp index 6a20768583..b5a53fa1bf 100644 --- a/modules/gridmap/editor/grid_map_editor_plugin.cpp +++ b/modules/gridmap/editor/grid_map_editor_plugin.cpp @@ -1291,14 +1291,14 @@ GridMapEditor::GridMapEditor() { search_box->connect("gui_input", callable_mp(this, &GridMapEditor::_sbox_input)); mode_thumbnail = memnew(Button); - mode_thumbnail->set_flat(true); + mode_thumbnail->set_theme_type_variation("FlatButton"); mode_thumbnail->set_toggle_mode(true); mode_thumbnail->set_pressed(true); hb->add_child(mode_thumbnail); mode_thumbnail->connect("pressed", callable_mp(this, &GridMapEditor::_set_display_mode).bind(DISPLAY_THUMBNAIL)); mode_list = memnew(Button); - mode_list->set_flat(true); + mode_list->set_theme_type_variation("FlatButton"); mode_list->set_toggle_mode(true); mode_list->set_pressed(false); hb->add_child(mode_list); |