Skip to content

Commit 2d7f1b7

Browse files
committed
[fix] update icon
1 parent 4bed2e8 commit 2d7f1b7

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

composeApp/src/commonMain/kotlin/com/alpha/showcase/common/ui/play/PlayPage.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ fun PlayPage(remoteApi: RemoteApi, onBack: () -> Unit = {}) {
176176
) {
177177
Icon(
178178
imageVector = Icons.Default.Close,
179-
contentDescription = stringResource(Res.string.close)
179+
contentDescription = stringResource(Res.string.close),
180+
tint = Color.Black.copy(0.6f)
180181
)
181182
}
182183
}

composeApp/src/commonMain/kotlin/com/alpha/showcase/common/ui/play/SlidePlayPager.kt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ import androidx.compose.foundation.pager.VerticalPager
1616
import androidx.compose.foundation.pager.rememberPagerState
1717
import androidx.compose.foundation.shape.CircleShape
1818
import androidx.compose.material.icons.Icons
19-
import androidx.compose.material.icons.automirrored.filled.ArrowBackIos
20-
import androidx.compose.material.icons.automirrored.filled.ArrowForwardIos
19+
import androidx.compose.material.icons.automirrored.rounded.ArrowBackIos
2120
import androidx.compose.material.icons.automirrored.rounded.ArrowForwardIos
2221
import androidx.compose.material3.Card
2322
import androidx.compose.material3.Icon
@@ -223,7 +222,8 @@ fun SlideImagePager(
223222
) {
224223
Icon(
225224
imageVector = Icons.AutoMirrored.Rounded.ArrowForwardIos,
226-
contentDescription = stringResource(Res.string.forward)
225+
contentDescription = stringResource(Res.string.forward),
226+
tint = Color.Black.copy(0.6f)
227227
)
228228
}
229229
}
@@ -246,8 +246,9 @@ fun SlideImagePager(
246246
modifier = Modifier.padding(30.dp).focusable().background(Color.Gray.copy(0.5f), shape = CircleShape)
247247
) {
248248
Icon(
249-
imageVector = Icons.AutoMirrored.Filled.ArrowBackIos,
250-
contentDescription = stringResource(Res.string.backward)
249+
imageVector = Icons.AutoMirrored.Rounded.ArrowBackIos,
250+
contentDescription = stringResource(Res.string.backward),
251+
tint = Color.Black.copy(0.6f)
251252
)
252253
}
253254
}

0 commit comments

Comments
 (0)