summaryrefslogtreecommitdiffstats
path: root/editor/gui/editor_run_bar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/gui/editor_run_bar.cpp')
-rw-r--r--editor/gui/editor_run_bar.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/editor/gui/editor_run_bar.cpp b/editor/gui/editor_run_bar.cpp
index a79dced69e..a44dfc9858 100644
--- a/editor/gui/editor_run_bar.cpp
+++ b/editor/gui/editor_run_bar.cpp
@@ -372,7 +372,7 @@ EditorRunBar::EditorRunBar() {
play_button = memnew(Button);
main_hbox->add_child(play_button);
- play_button->set_flat(true);
+ play_button->set_theme_type_variation("RunBarButton");
play_button->set_toggle_mode(true);
play_button->set_focus_mode(Control::FOCUS_NONE);
play_button->set_tooltip_text(TTR("Run the project's default scene."));
@@ -384,7 +384,7 @@ EditorRunBar::EditorRunBar() {
pause_button = memnew(Button);
main_hbox->add_child(pause_button);
- pause_button->set_flat(true);
+ pause_button->set_theme_type_variation("RunBarButton");
pause_button->set_toggle_mode(true);
pause_button->set_focus_mode(Control::FOCUS_NONE);
pause_button->set_tooltip_text(TTR("Pause the running project's execution for debugging."));
@@ -396,7 +396,7 @@ EditorRunBar::EditorRunBar() {
stop_button = memnew(Button);
main_hbox->add_child(stop_button);
- stop_button->set_flat(true);
+ stop_button->set_theme_type_variation("RunBarButton");
stop_button->set_focus_mode(Control::FOCUS_NONE);
stop_button->set_tooltip_text(TTR("Stop the currently running project."));
stop_button->set_disabled(true);
@@ -412,7 +412,7 @@ EditorRunBar::EditorRunBar() {
play_scene_button = memnew(Button);
main_hbox->add_child(play_scene_button);
- play_scene_button->set_flat(true);
+ play_scene_button->set_theme_type_variation("RunBarButton");
play_scene_button->set_toggle_mode(true);
play_scene_button->set_focus_mode(Control::FOCUS_NONE);
play_scene_button->set_tooltip_text(TTR("Run the currently edited scene."));
@@ -424,7 +424,7 @@ EditorRunBar::EditorRunBar() {
play_custom_scene_button = memnew(Button);
main_hbox->add_child(play_custom_scene_button);
- play_custom_scene_button->set_flat(true);
+ play_custom_scene_button->set_theme_type_variation("RunBarButton");
play_custom_scene_button->set_toggle_mode(true);
play_custom_scene_button->set_focus_mode(Control::FOCUS_NONE);
play_custom_scene_button->set_tooltip_text(TTR("Run a specific scene."));
@@ -439,7 +439,7 @@ EditorRunBar::EditorRunBar() {
write_movie_button = memnew(Button);
write_movie_panel->add_child(write_movie_button);
- write_movie_button->set_flat(true);
+ write_movie_button->set_theme_type_variation("RunBarButton");
write_movie_button->set_toggle_mode(true);
write_movie_button->set_pressed(false);
write_movie_button->set_focus_mode(Control::FOCUS_NONE);