From b2dfd3fb7130f0ea4d4adbe68ec56e39b5bd642f Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 29 Aug 2024 00:52:39 +0200 Subject: [PATCH] Rounding corners of selection background --- .../net/codinux/banking/ui/composables/NavigationMenuItem.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/NavigationMenuItem.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/NavigationMenuItem.kt index 264ea25..3241f23 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/NavigationMenuItem.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/NavigationMenuItem.kt @@ -6,6 +6,7 @@ import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size +import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.collectAsState @@ -46,7 +47,7 @@ fun NavigationMenuItem( .let { if (userAccount != null && filterService.isSelected(userAccount, accountFilter) || bankAccount != null && filterService.isSelected(bankAccount, accountFilter)) { - it.background(Colors.Accent) + it.background(Colors.Accent, shape = RoundedCornerShape(4.dp)) } else { it }