mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Editor: Add accessibility label to project favorite button
This commit is contained in:
parent
7ed0b61676
commit
8eba8bda85
1 changed files with 2 additions and 0 deletions
|
|
@ -306,8 +306,10 @@ void ProjectListItemControl::set_is_favorite(bool p_favorite) {
|
|||
is_favorite = p_favorite;
|
||||
if (p_favorite) {
|
||||
favorite_button->set_texture_normal(get_editor_theme_icon(SNAME("Favorites")));
|
||||
favorite_button->set_accessibility_name(TTRC("Remove from Favorites"));
|
||||
} else {
|
||||
favorite_button->set_texture_normal(get_editor_theme_icon(SNAME("Unfavorite")));
|
||||
favorite_button->set_accessibility_name(TTRC("Add to Favorites"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue