From aad4699a8fdb17ef8fccf73ad509c37f025b8302 Mon Sep 17 00:00:00 2001 From: Elie G Date: Fri, 24 Jan 2025 15:46:31 +0200 Subject: [PATCH] Use AutoMirrored icons for volume controls. Replaced default volume icons with AutoMirrored versions to ensure proper mirroring in layouts supporting RTL (Right-to-Left) languages. This enhances the app's internationalization and accessibility. --- sample/composeApp/src/commonMain/kotlin/sample/app/App.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sample/composeApp/src/commonMain/kotlin/sample/app/App.kt b/sample/composeApp/src/commonMain/kotlin/sample/app/App.kt index c9b5f0e..5ed953f 100644 --- a/sample/composeApp/src/commonMain/kotlin/sample/app/App.kt +++ b/sample/composeApp/src/commonMain/kotlin/sample/app/App.kt @@ -5,6 +5,8 @@ import androidx.compose.foundation.background import androidx.compose.foundation.layout.* import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.icons.Icons +import androidx.compose.material.icons.automirrored.filled.VolumeOff +import androidx.compose.material.icons.automirrored.filled.VolumeUp import androidx.compose.material.icons.filled.* import androidx.compose.material3.* import androidx.compose.runtime.* @@ -194,9 +196,9 @@ fun App() { ) { Icon( imageVector = if (playerState.volume > 0f) - Icons.Default.VolumeUp + Icons.AutoMirrored.Filled.VolumeUp else - Icons.Default.VolumeOff, + Icons.AutoMirrored.Filled.VolumeOff, contentDescription = "Volume", tint = MaterialTheme.colorScheme.primary )