diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/GroupedTransactionsListItems.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/GroupedTransactionsListItems.kt index fcf6975..fc7cfad 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/GroupedTransactionsListItems.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/GroupedTransactionsListItems.kt @@ -17,6 +17,7 @@ import net.codinux.banking.client.model.securitiesaccount.Holding import net.codinux.banking.dataaccess.entities.BankAccessEntity import net.codinux.banking.ui.config.Colors import net.codinux.banking.ui.config.DI +import net.codinux.banking.ui.config.Style import net.codinux.banking.ui.forms.RoundedCornersCard import net.codinux.banking.ui.model.AccountTransactionViewModel import net.codinux.banking.ui.model.TransactionsGrouping @@ -49,6 +50,7 @@ fun GroupedTransactionsListItems( Column(Modifier.fillMaxWidth().padding(top = 8.dp, bottom = 16.dp)) { Text( text = "Depotwerte", + color = Style.ListItemHeaderTextColor, fontSize = 16.sp, fontWeight = FontWeight.SemiBold, modifier = Modifier.padding(bottom = 2.dp), @@ -77,6 +79,7 @@ fun GroupedTransactionsListItems( Column(Modifier.fillMaxWidth()) { Text( text = DI.formatUtil.formatGroupingDate(groupingDate, transactionsGrouping), + color = Style.ListItemHeaderTextColor, fontSize = 16.sp, fontWeight = FontWeight.SemiBold, modifier = Modifier.padding(top = 8.dp, bottom = 2.dp), diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/HoldingListItem.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/HoldingListItem.kt index 1c6a036..40a4fe1 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/HoldingListItem.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/HoldingListItem.kt @@ -48,6 +48,7 @@ fun HoldingListItem(holding: Holding, isOddItem: Boolean = false, isNotLastItem: Text( holding.name, + color = Style.ListItemHeaderTextColor, fontWeight = Style.ListItemHeaderWeight, maxLines = 1, overflow = TextOverflow.Ellipsis, diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/TransactionListItem.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/TransactionListItem.kt index e2d1ecc..a304bad 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/TransactionListItem.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/transactions/TransactionListItem.kt @@ -84,6 +84,7 @@ fun TransactionListItem(bank: BankAccess?, transaction: AccountTransactionViewMo Text( text = transaction.otherPartyName ?: transaction.postingText ?: "", Modifier.fillMaxWidth(), + color = Style.ListItemHeaderTextColor, fontWeight = Style.ListItemHeaderWeight, maxLines = 1, overflow = TextOverflow.Ellipsis 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 d27bd08..0cb4269 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 @@ -39,6 +39,8 @@ object Colors { val Zinc200 = Color(228, 228, 231) + val Zinc500 = Color(0xFF71717a) + val Zinc700 = Color(63, 63, 70) diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/config/Style.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/config/Style.kt index 4dbb716..1b09a41 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/config/Style.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/config/Style.kt @@ -13,6 +13,9 @@ object Style { val HeaderFontWeight: FontWeight = FontWeight.Bold + + val ListItemHeaderTextColor: Color = Colors.Zinc500 + val ListItemHeaderWeight = FontWeight.Medium // couldn't believe it, the FontWeights look different on Desktop and Android