updated some icons with content descriptions
This commit is contained in:
@@ -22,7 +22,7 @@ package com.vitorpamplona.amethyst.ui.note
|
|||||||
|
|
||||||
import androidx.compose.foundation.layout.size
|
import androidx.compose.foundation.layout.size
|
||||||
import androidx.compose.material.icons.Icons
|
import androidx.compose.material.icons.Icons
|
||||||
import androidx.compose.material.icons.filled.ArrowBack
|
import androidx.compose.material.icons.automirrored.filled.ArrowBack
|
||||||
import androidx.compose.material.icons.filled.Bolt
|
import androidx.compose.material.icons.filled.Bolt
|
||||||
import androidx.compose.material.icons.filled.Cancel
|
import androidx.compose.material.icons.filled.Cancel
|
||||||
import androidx.compose.material.icons.filled.Clear
|
import androidx.compose.material.icons.filled.Clear
|
||||||
@@ -81,7 +81,7 @@ fun FollowingIcon(iconSize: Dp) {
|
|||||||
@Composable
|
@Composable
|
||||||
fun ArrowBackIcon() {
|
fun ArrowBackIcon() {
|
||||||
Icon(
|
Icon(
|
||||||
imageVector = Icons.Default.ArrowBack,
|
imageVector = Icons.AutoMirrored.Filled.ArrowBack,
|
||||||
contentDescription = stringResource(R.string.back),
|
contentDescription = stringResource(R.string.back),
|
||||||
tint = MaterialTheme.colorScheme.grayText,
|
tint = MaterialTheme.colorScheme.grayText,
|
||||||
)
|
)
|
||||||
@@ -104,7 +104,7 @@ fun DownloadForOfflineIcon(
|
|||||||
) {
|
) {
|
||||||
Icon(
|
Icon(
|
||||||
imageVector = Icons.Default.DownloadForOffline,
|
imageVector = Icons.Default.DownloadForOffline,
|
||||||
null,
|
contentDescription = stringResource(id = R.string.accessibility_download_for_offline),
|
||||||
modifier = remember(iconSize) { Modifier.size(iconSize) },
|
modifier = remember(iconSize) { Modifier.size(iconSize) },
|
||||||
tint = tint,
|
tint = tint,
|
||||||
)
|
)
|
||||||
@@ -320,7 +320,7 @@ fun RegularPostIcon() {
|
|||||||
fun CancelIcon() {
|
fun CancelIcon() {
|
||||||
Icon(
|
Icon(
|
||||||
imageVector = Icons.Default.Cancel,
|
imageVector = Icons.Default.Cancel,
|
||||||
null,
|
contentDescription = stringResource(id = R.string.cancel),
|
||||||
modifier = Size30Modifier,
|
modifier = Size30Modifier,
|
||||||
tint = MaterialTheme.colorScheme.placeholderText,
|
tint = MaterialTheme.colorScheme.placeholderText,
|
||||||
)
|
)
|
||||||
@@ -375,7 +375,7 @@ fun PlayIcon(
|
|||||||
) {
|
) {
|
||||||
Icon(
|
Icon(
|
||||||
imageVector = Icons.Outlined.PlayCircle,
|
imageVector = Icons.Outlined.PlayCircle,
|
||||||
contentDescription = null,
|
contentDescription = "Play",
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
tint = tint,
|
tint = tint,
|
||||||
)
|
)
|
||||||
@@ -401,7 +401,7 @@ fun LyricsIcon(
|
|||||||
) {
|
) {
|
||||||
Icon(
|
Icon(
|
||||||
painter = painterResource(id = R.drawable.lyrics_on),
|
painter = painterResource(id = R.drawable.lyrics_on),
|
||||||
contentDescription = null,
|
contentDescription = stringResource(id = R.string.accessibility_lyrics_on),
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
tint = tint,
|
tint = tint,
|
||||||
)
|
)
|
||||||
@@ -414,7 +414,7 @@ fun LyricsOffIcon(
|
|||||||
) {
|
) {
|
||||||
Icon(
|
Icon(
|
||||||
painter = painterResource(id = R.drawable.lyrics_off),
|
painter = painterResource(id = R.drawable.lyrics_off),
|
||||||
contentDescription = null,
|
contentDescription = stringResource(id = R.string.accessibility_lyrics_off),
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
tint = tint,
|
tint = tint,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -802,4 +802,8 @@
|
|||||||
<string name="message_to_author_placeholder">Quick fixes…</string>
|
<string name="message_to_author_placeholder">Quick fixes…</string>
|
||||||
|
|
||||||
<string name="accept_the_suggestion">Accept the Suggestion</string>
|
<string name="accept_the_suggestion">Accept the Suggestion</string>
|
||||||
|
|
||||||
|
<string name="accessibility_download_for_offline">Download</string>
|
||||||
|
<string name="accessibility_lyrics_on">Lyrics on</string>
|
||||||
|
<string name="accessibility_lyrics_off">Lyrics off</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user