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 e370a77..bc1d73e 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 @@ -18,6 +18,7 @@ import net.codinux.banking.client.model.securitiesaccount.Holding import net.codinux.banking.ui.composables.text.ItemDivider import net.codinux.banking.ui.config.Colors import net.codinux.banking.ui.config.DI +import net.codinux.banking.ui.config.Style private val uiSettings = DI.uiSettings @@ -48,7 +49,7 @@ fun HoldingListItem(holding: Holding, isOddItem: Boolean = false, isNotLastItem: Text( holding.name, - fontWeight = FontWeight.Bold, + fontWeight = Style.ListItemHeaderWeight, maxLines = 1, overflow = TextOverflow.Ellipsis, modifier = Modifier.weight(1f).padding(end = 4.dp) 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 763a0ac..c9e90b3 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 @@ -19,6 +19,7 @@ import net.codinux.banking.ui.composables.BankIcon import net.codinux.banking.ui.composables.text.ItemDivider 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.model.AccountTransactionViewModel import net.codinux.banking.ui.model.ShowTransferMoneyDialogData @@ -84,7 +85,7 @@ fun TransactionListItem(user: User?, transaction: AccountTransactionViewModel, i Text( text = transaction.otherPartyName ?: transaction.postingText ?: "", Modifier.fillMaxWidth(), - fontWeight = FontWeight.Bold, + fontWeight = Style.ListItemHeaderWeight, maxLines = 1, overflow = TextOverflow.Ellipsis ) 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 93ea59e..4dbb716 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,8 @@ object Style { val HeaderFontWeight: FontWeight = FontWeight.Bold + val ListItemHeaderWeight = FontWeight.Medium // couldn't believe it, the FontWeights look different on Desktop and Android + val DividerThickness = 1.dp