1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Cleanup accessibility names.

This commit is contained in:
Pāvels Nadtočajevs
2025-06-12 07:55:29 +03:00
parent 242b8ff80a
commit a272376f89
97 changed files with 188 additions and 440 deletions

View File

@@ -264,7 +264,6 @@ void ProjectListItemControl::set_unsupported_features(PackedStringArray p_featur
}
project_version->set_tooltip_text(tooltip_text);
project_unsupported_features->set_focus_mode(FOCUS_ACCESSIBILITY);
project_unsupported_features->set_accessibility_name(tooltip_text);
project_unsupported_features->set_tooltip_text(tooltip_text);
project_unsupported_features->show();
} else {
@@ -332,7 +331,6 @@ ProjectListItemControl::ProjectListItemControl() {
favorite_button = memnew(TextureButton);
favorite_button->set_name("FavoriteButton");
favorite_button->set_tooltip_text(TTRC("Add to favorites"));
favorite_button->set_accessibility_name(TTRC("Add to favorites"));
favorite_button->set_auto_translate_mode(AUTO_TRANSLATE_MODE_ALWAYS);
// This makes the project's "hover" style display correctly when hovering the favorite icon.
favorite_button->set_mouse_filter(MOUSE_FILTER_PASS);
@@ -383,7 +381,6 @@ ProjectListItemControl::ProjectListItemControl() {
explore_button->set_name("ExploreButton");
explore_button->set_tooltip_auto_translate_mode(AUTO_TRANSLATE_MODE_ALWAYS);
explore_button->set_tooltip_text(TTRC("Open in file manager"));
explore_button->set_accessibility_name(TTRC("Open in file manager"));
explore_button->set_flat(true);
path_hb->add_child(explore_button);
explore_button->connect(SceneStringName(pressed), callable_mp(this, &ProjectListItemControl::_explore_button_pressed));