From 4bd569be95f0e8ba34813b0d8fc53bab1125ccaa Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Tue, 19 Sep 2023 18:03:10 +0200 Subject: Replace flat buttons with flat-styled buttons with a visible pressed state --- editor/plugins/visual_shader_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/plugins/visual_shader_editor_plugin.cpp') diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index b9b47c475b..7925fe167f 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/editor/plugins/visual_shader_editor_plugin.cpp @@ -5265,7 +5265,7 @@ VisualShaderEditor::VisualShaderEditor() { varying_menu->connect("id_pressed", callable_mp(this, &VisualShaderEditor::_varying_menu_id_pressed)); preview_shader = memnew(Button); - preview_shader->set_flat(true); + preview_shader->set_theme_type_variation("FlatButton"); preview_shader->set_toggle_mode(true); preview_shader->set_tooltip_text(TTR("Show generated shader code.")); graph->get_menu_hbox()->add_child(preview_shader); -- cgit v1.2.3