Rounding corners of selection background
This commit is contained in:
parent
2c0a3d4ec5
commit
b2dfd3fb71
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue