Reduced list item header font weight (remove it on Android completely?)

This commit is contained in:
dankito 2024-09-13 17:51:53 +02:00
parent ded5595dae
commit 56b73ca986
3 changed files with 6 additions and 2 deletions

View File

@ -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)

View File

@ -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
)

View File

@ -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