From 15177ed2efdebfd264d16088e05b5a0caf5971ee Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 29 Aug 2024 18:29:05 +0200 Subject: [PATCH] Made selection background more transparent --- .../net/codinux/banking/ui/composables/NavigationMenuItem.kt | 2 +- .../commonMain/kotlin/net/codinux/banking/ui/config/Colors.kt | 2 ++ 2 files changed, 3 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 0f57007..f440ff7 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 @@ -52,7 +52,7 @@ fun NavigationMenuItem( .let { if (userAccount != null && filterService.isSelected(userAccount, transactionsFilter) || bankAccount != null && filterService.isSelected(bankAccount, transactionsFilter)) { - it.background(Colors.Accent, shape = RoundedCornerShape(4.dp)) + it.background(Colors.AccentAsSelectionBackground, shape = RoundedCornerShape(4.dp)) } else { it } diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/config/Colors.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/config/Colors.kt index 58411dd..7d41f4b 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/config/Colors.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/config/Colors.kt @@ -11,6 +11,8 @@ object Colors { val Accent = Color("#00786a") + val AccentAsSelectionBackground = Accent.copy(alpha = 0.15f) + val PrimaryTextColorDark = Color("#BABABA") val PrimaryTextColorLight = Color("#000000")