From ff8bf80f6d65b2313b0bbd4a197f7e0e099a1b7b Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 19 Sep 2024 21:47:40 +0200 Subject: [PATCH] Fixed text color of balance if showColoredAmounts is false --- .../net/codinux/banking/ui/composables/NavigationMenuItem.kt | 2 +- 1 file changed, 1 insertion(+), 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 36ba8aa..6aa78bb 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 @@ -101,7 +101,7 @@ fun NavigationMenuItem( if (balance != null) { Text( formatUtil.formatAmount(balance, calculator.getTransactionsCurrency(emptyList())), - color = formatUtil.getColorForAmount(balance, showColoredAmounts), + color = if (showColoredAmounts) formatUtil.getColorForAmount(balance, showColoredAmounts) else textColor, modifier = Modifier.padding(start = 4.dp) ) }