Set list item header color to Zinc500

This commit is contained in:
dankito 2024-09-17 04:15:09 +02:00
parent f6dfada5bf
commit a11c862ecc
5 changed files with 10 additions and 0 deletions

View File

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

View File

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

View File

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

View File

@ -39,6 +39,8 @@ object Colors {
val Zinc200 = Color(228, 228, 231)
val Zinc500 = Color(0xFF71717a)
val Zinc700 = Color(63, 63, 70)

View File

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