1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Add hover styles to buttons in Script/Shader editor

This commit is contained in:
Giganzo
2025-07-22 21:59:43 +02:00
parent 0c51ede243
commit c21a03361a
9 changed files with 49 additions and 22 deletions

View File

@@ -3459,9 +3459,9 @@ EditorHelp::EditorHelp() {
status_bar->set_custom_minimum_size(Size2(0, 24 * EDSCALE));
toggle_files_button = memnew(Button);
toggle_files_button->set_theme_type_variation(SceneStringName(FlatButton));
toggle_files_button->set_accessibility_name(TTRC("Scripts"));
toggle_files_button->set_tooltip_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
toggle_files_button->set_flat(true);
toggle_files_button->connect(SceneStringName(pressed), callable_mp(this, &EditorHelp::_toggle_files_pressed));
status_bar->add_child(toggle_files_button);
@@ -4891,7 +4891,7 @@ FindBar::FindBar() {
matches_label->hide();
find_prev = memnew(Button);
find_prev->set_flat(true);
find_prev->set_theme_type_variation(SceneStringName(FlatButton));
find_prev->set_disabled(results_count < 1);
find_prev->set_tooltip_text(TTR("Previous Match"));
add_child(find_prev);
@@ -4899,7 +4899,7 @@ FindBar::FindBar() {
find_prev->connect(SceneStringName(pressed), callable_mp(this, &FindBar::search_prev));
find_next = memnew(Button);
find_next->set_flat(true);
find_next->set_theme_type_variation(SceneStringName(FlatButton));
find_next->set_disabled(results_count < 1);
find_next->set_tooltip_text(TTR("Next Match"));
add_child(find_next);
@@ -4907,7 +4907,7 @@ FindBar::FindBar() {
find_next->connect(SceneStringName(pressed), callable_mp(this, &FindBar::search_next));
hide_button = memnew(Button);
hide_button->set_flat(true);
hide_button->set_theme_type_variation(SceneStringName(FlatButton));
hide_button->set_tooltip_text(TTR("Hide"));
hide_button->set_focus_mode(FOCUS_ACCESSIBILITY);
hide_button->connect(SceneStringName(pressed), callable_mp(this, &FindBar::_hide_bar));