Rounding corners of selection background

This commit is contained in:
dankito 2024-08-29 00:52:39 +02:00
parent 2c0a3d4ec5
commit b2dfd3fb71
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Text import androidx.compose.material.Text
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState import androidx.compose.runtime.collectAsState
@ -46,7 +47,7 @@ fun NavigationMenuItem(
.let { .let {
if (userAccount != null && filterService.isSelected(userAccount, accountFilter) if (userAccount != null && filterService.isSelected(userAccount, accountFilter)
|| bankAccount != null && filterService.isSelected(bankAccount, accountFilter)) { || bankAccount != null && filterService.isSelected(bankAccount, accountFilter)) {
it.background(Colors.Accent) it.background(Colors.Accent, shape = RoundedCornerShape(4.dp))
} else { } else {
it it
} }