Reduced list item header font weight (remove it on Android completely?)
This commit is contained in:
parent
ded5595dae
commit
56b73ca986
|
@ -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.composables.text.ItemDivider
|
||||||
import net.codinux.banking.ui.config.Colors
|
import net.codinux.banking.ui.config.Colors
|
||||||
import net.codinux.banking.ui.config.DI
|
import net.codinux.banking.ui.config.DI
|
||||||
|
import net.codinux.banking.ui.config.Style
|
||||||
|
|
||||||
private val uiSettings = DI.uiSettings
|
private val uiSettings = DI.uiSettings
|
||||||
|
|
||||||
|
@ -48,7 +49,7 @@ fun HoldingListItem(holding: Holding, isOddItem: Boolean = false, isNotLastItem:
|
||||||
|
|
||||||
Text(
|
Text(
|
||||||
holding.name,
|
holding.name,
|
||||||
fontWeight = FontWeight.Bold,
|
fontWeight = Style.ListItemHeaderWeight,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
modifier = Modifier.weight(1f).padding(end = 4.dp)
|
modifier = Modifier.weight(1f).padding(end = 4.dp)
|
||||||
|
|
|
@ -19,6 +19,7 @@ import net.codinux.banking.ui.composables.BankIcon
|
||||||
import net.codinux.banking.ui.composables.text.ItemDivider
|
import net.codinux.banking.ui.composables.text.ItemDivider
|
||||||
import net.codinux.banking.ui.config.Colors
|
import net.codinux.banking.ui.config.Colors
|
||||||
import net.codinux.banking.ui.config.DI
|
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.AccountTransactionViewModel
|
||||||
import net.codinux.banking.ui.model.ShowTransferMoneyDialogData
|
import net.codinux.banking.ui.model.ShowTransferMoneyDialogData
|
||||||
|
|
||||||
|
@ -84,7 +85,7 @@ fun TransactionListItem(user: User?, transaction: AccountTransactionViewModel, i
|
||||||
Text(
|
Text(
|
||||||
text = transaction.otherPartyName ?: transaction.postingText ?: "",
|
text = transaction.otherPartyName ?: transaction.postingText ?: "",
|
||||||
Modifier.fillMaxWidth(),
|
Modifier.fillMaxWidth(),
|
||||||
fontWeight = FontWeight.Bold,
|
fontWeight = Style.ListItemHeaderWeight,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
overflow = TextOverflow.Ellipsis
|
overflow = TextOverflow.Ellipsis
|
||||||
)
|
)
|
||||||
|
|
|
@ -13,6 +13,8 @@ object Style {
|
||||||
|
|
||||||
val HeaderFontWeight: FontWeight = FontWeight.Bold
|
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
|
val DividerThickness = 1.dp
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue