From d129bd766b80cba3a46c318c1ab2f6347f99efbd Mon Sep 17 00:00:00 2001 From: Tuukka Ojala Date: Sat, 18 Jan 2025 00:14:12 +0200 Subject: [PATCH] Improve accessibility for screen reader users - Marked UI regions with ARIA landmarks - Added text labels to icon-only buttons - Added ARIA state semantics to track star buttons - Added static alt text to cover art images --- approot/artist.xml | 2 +- approot/main.xml | 4 ++-- approot/mediaplayer.xml | 12 ++++++------ approot/messages.xml | 11 +++++++++++ approot/release.xml | 2 +- approot/releases.xml | 2 +- approot/tracks.xml | 2 +- src/lms/ui/Utils.cpp | 1 + src/lms/ui/explore/ReleaseView.cpp | 20 +++++++++++++++----- src/lms/ui/explore/TrackListHelpers.cpp | 8 +++++++- 10 files changed, 46 insertions(+), 18 deletions(-) diff --git a/approot/artist.xml b/approot/artist.xml index 78195b00..00c4f3a0 100644 --- a/approot/artist.xml +++ b/approot/artist.xml @@ -15,7 +15,7 @@ ${}
${play-btn class="btn btn-primary"} - - -
@@ -39,7 +39,7 @@
- +
${playqueue-btn class="btn btn-outline-primary border-0"} diff --git a/approot/messages.xml b/approot/messages.xml index 00d92c46..1b10384a 100644 --- a/approot/messages.xml +++ b/approot/messages.xml @@ -15,6 +15,7 @@ Loading... Login Logout +More... Ok Password Bad login / password combination @@ -197,6 +198,7 @@ All Artists Bitrate +Cover art Codec Download Duration @@ -207,6 +209,7 @@ Most played MusicBrainz Artist MusicBrainz Release +Play {1} Play Play last Play next @@ -221,6 +224,7 @@ Albums Search Star +Star {1} Starred Track information Lyrics @@ -309,6 +313,13 @@ Transcoding active +Now playing +Previous +Play / pause +Next +Seek +Volume + Clear diff --git a/approot/release.xml b/approot/release.xml index d19cd070..36afe78e 100644 --- a/approot/release.xml +++ b/approot/release.xml @@ -18,7 +18,7 @@ ${clusters class="mb-2"}
${play-btn class="btn btn-primary"} -