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/visual_shader_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/visual_shader_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/visual_shader_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |