mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Change prev/next button theme_type_variation to FlatButton for Filesystem and Inspector dock
This commit is contained in:
parent
2cc031f3a3
commit
e6f7161b94
2 changed files with 4 additions and 4 deletions
|
|
@ -4261,14 +4261,14 @@ FileSystemDock::FileSystemDock() {
|
|||
toolbar_hbc->add_child(nav_hbc);
|
||||
|
||||
button_hist_prev = memnew(Button);
|
||||
button_hist_prev->set_flat(true);
|
||||
button_hist_prev->set_theme_type_variation(SceneStringName(FlatButton));
|
||||
button_hist_prev->set_disabled(true);
|
||||
button_hist_prev->set_focus_mode(FOCUS_ACCESSIBILITY);
|
||||
button_hist_prev->set_tooltip_text(TTRC("Go to previous selected folder/file."));
|
||||
nav_hbc->add_child(button_hist_prev);
|
||||
|
||||
button_hist_next = memnew(Button);
|
||||
button_hist_next->set_flat(true);
|
||||
button_hist_next->set_theme_type_variation(SceneStringName(FlatButton));
|
||||
button_hist_next->set_disabled(true);
|
||||
button_hist_next->set_focus_mode(FOCUS_ACCESSIBILITY);
|
||||
button_hist_next->set_tooltip_text(TTRC("Go to next selected folder/file."));
|
||||
|
|
|
|||
|
|
@ -764,14 +764,14 @@ InspectorDock::InspectorDock(EditorData &p_editor_data) {
|
|||
general_options_hb->add_spacer();
|
||||
|
||||
backward_button = memnew(Button);
|
||||
backward_button->set_flat(true);
|
||||
backward_button->set_theme_type_variation(SceneStringName(FlatButton));
|
||||
general_options_hb->add_child(backward_button);
|
||||
backward_button->set_tooltip_text(TTRC("Go to previous edited object in history."));
|
||||
backward_button->set_disabled(true);
|
||||
backward_button->connect(SceneStringName(pressed), callable_mp(this, &InspectorDock::_edit_back));
|
||||
|
||||
forward_button = memnew(Button);
|
||||
forward_button->set_flat(true);
|
||||
forward_button->set_theme_type_variation(SceneStringName(FlatButton));
|
||||
general_options_hb->add_child(forward_button);
|
||||
forward_button->set_tooltip_text(TTRC("Go to next edited object in history."));
|
||||
forward_button->set_disabled(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue