Skip to content

Commit 38f5d06

Browse files
committed
👔 Reduced roundness of corners of SettingsItem
1 parent 9c6bb69 commit 38f5d06

File tree

1 file changed

+2
-5
lines changed
  • app/src/main/java/com/lorenzovainigli/foodexpirationdates/view/composable

1 file changed

+2
-5
lines changed

app/src/main/java/com/lorenzovainigli/foodexpirationdates/view/composable/SettingsItem.kt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fun SettingsItem(
3232
Column(
3333
modifier = Modifier
3434
.wrapContentSize()
35-
.clip(RoundedCornerShape(20))
35+
.clip(RoundedCornerShape(12))
3636
.background(MaterialTheme.colorScheme.surfaceColorAtElevation(TonalElevation.level1()))
3737
.padding(12.dp)
3838
) {
@@ -65,10 +65,7 @@ fun SettingsItem(
6565
@Composable
6666
fun Preview() {
6767
FoodExpirationDatesTheme {
68-
Surface(
69-
color = MaterialTheme.colorScheme.background,
70-
tonalElevation = TonalElevation.level2()
71-
) {
68+
Surface {
7269
SettingsItem(
7370
label = "Label",
7471
description = "Description"

0 commit comments

Comments
 (0)