Skip to content

Commit 0153136

Browse files
committed
feat: shape
1 parent f1d451c commit 0153136

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/to/bitkit/ui/components/ToastView.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ import androidx.compose.foundation.layout.height
1919
import androidx.compose.foundation.layout.padding
2020
import androidx.compose.foundation.layout.size
2121
import androidx.compose.foundation.layout.systemBarsPadding
22-
import androidx.compose.foundation.shape.RoundedCornerShape
2322
import androidx.compose.material.icons.Icons
2423
import androidx.compose.material.icons.filled.Close
2524
import androidx.compose.material3.Icon
2625
import androidx.compose.material3.IconButton
26+
import androidx.compose.material3.MaterialTheme
2727
import androidx.compose.runtime.Composable
2828
import androidx.compose.runtime.ReadOnlyComposable
2929
import androidx.compose.ui.Alignment
@@ -52,7 +52,7 @@ fun ToastView(
5252
.fillMaxWidth()
5353
.systemBarsPadding()
5454
.padding(horizontal = 16.dp)
55-
.background(tintColor.copy(alpha = 0.32f), RoundedCornerShape(8.dp))
55+
.background(tintColor.copy(alpha = 0.32f), shape = MaterialTheme.shapes.medium)
5656
.padding(16.dp)
5757
.then(toast.testTag?.let { Modifier.testTag(it) } ?: Modifier),
5858
) {

0 commit comments

Comments
 (0)