From 5f8a65cc8fef3ea5089296bce88f60296295f2ef Mon Sep 17 00:00:00 2001 From: Artem Chepurnoy Date: Mon, 8 Jan 2024 15:46:34 +0200 Subject: [PATCH] fix: Use extraLarge shape for the toast message container --- .../kotlin/com/artemchep/keyguard/ui/ToastComposable.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/commonMain/kotlin/com/artemchep/keyguard/ui/ToastComposable.kt b/common/src/commonMain/kotlin/com/artemchep/keyguard/ui/ToastComposable.kt index 7ac33f56..b4861e47 100644 --- a/common/src/commonMain/kotlin/com/artemchep/keyguard/ui/ToastComposable.kt +++ b/common/src/commonMain/kotlin/com/artemchep/keyguard/ui/ToastComposable.kt @@ -19,6 +19,7 @@ import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width import androidx.compose.foundation.shape.CircleShape +import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.icons.Icons import androidx.compose.material.icons.outlined.CheckCircle import androidx.compose.material.icons.outlined.ErrorOutline @@ -225,7 +226,7 @@ private fun ToastMessage(model: ToastMessage) { Row( modifier = Modifier .fillMaxWidth() - .clip(CircleShape) + .clip(MaterialTheme.shapes.extraLarge) .background(containerColor) .padding( horizontal = 8.dp,