Set list item header color to Zinc500
This commit is contained in:
parent
f6dfada5bf
commit
a11c862ecc
|
@ -17,6 +17,7 @@ import net.codinux.banking.client.model.securitiesaccount.Holding
|
||||||
import net.codinux.banking.dataaccess.entities.BankAccessEntity
|
import net.codinux.banking.dataaccess.entities.BankAccessEntity
|
||||||
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.forms.RoundedCornersCard
|
import net.codinux.banking.ui.forms.RoundedCornersCard
|
||||||
import net.codinux.banking.ui.model.AccountTransactionViewModel
|
import net.codinux.banking.ui.model.AccountTransactionViewModel
|
||||||
import net.codinux.banking.ui.model.TransactionsGrouping
|
import net.codinux.banking.ui.model.TransactionsGrouping
|
||||||
|
@ -49,6 +50,7 @@ fun GroupedTransactionsListItems(
|
||||||
Column(Modifier.fillMaxWidth().padding(top = 8.dp, bottom = 16.dp)) {
|
Column(Modifier.fillMaxWidth().padding(top = 8.dp, bottom = 16.dp)) {
|
||||||
Text(
|
Text(
|
||||||
text = "Depotwerte",
|
text = "Depotwerte",
|
||||||
|
color = Style.ListItemHeaderTextColor,
|
||||||
fontSize = 16.sp,
|
fontSize = 16.sp,
|
||||||
fontWeight = FontWeight.SemiBold,
|
fontWeight = FontWeight.SemiBold,
|
||||||
modifier = Modifier.padding(bottom = 2.dp),
|
modifier = Modifier.padding(bottom = 2.dp),
|
||||||
|
@ -77,6 +79,7 @@ fun GroupedTransactionsListItems(
|
||||||
Column(Modifier.fillMaxWidth()) {
|
Column(Modifier.fillMaxWidth()) {
|
||||||
Text(
|
Text(
|
||||||
text = DI.formatUtil.formatGroupingDate(groupingDate, transactionsGrouping),
|
text = DI.formatUtil.formatGroupingDate(groupingDate, transactionsGrouping),
|
||||||
|
color = Style.ListItemHeaderTextColor,
|
||||||
fontSize = 16.sp,
|
fontSize = 16.sp,
|
||||||
fontWeight = FontWeight.SemiBold,
|
fontWeight = FontWeight.SemiBold,
|
||||||
modifier = Modifier.padding(top = 8.dp, bottom = 2.dp),
|
modifier = Modifier.padding(top = 8.dp, bottom = 2.dp),
|
||||||
|
|
|
@ -48,6 +48,7 @@ fun HoldingListItem(holding: Holding, isOddItem: Boolean = false, isNotLastItem:
|
||||||
|
|
||||||
Text(
|
Text(
|
||||||
holding.name,
|
holding.name,
|
||||||
|
color = Style.ListItemHeaderTextColor,
|
||||||
fontWeight = Style.ListItemHeaderWeight,
|
fontWeight = Style.ListItemHeaderWeight,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
overflow = TextOverflow.Ellipsis,
|
overflow = TextOverflow.Ellipsis,
|
||||||
|
|
|
@ -84,6 +84,7 @@ fun TransactionListItem(bank: BankAccess?, transaction: AccountTransactionViewMo
|
||||||
Text(
|
Text(
|
||||||
text = transaction.otherPartyName ?: transaction.postingText ?: "",
|
text = transaction.otherPartyName ?: transaction.postingText ?: "",
|
||||||
Modifier.fillMaxWidth(),
|
Modifier.fillMaxWidth(),
|
||||||
|
color = Style.ListItemHeaderTextColor,
|
||||||
fontWeight = Style.ListItemHeaderWeight,
|
fontWeight = Style.ListItemHeaderWeight,
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
overflow = TextOverflow.Ellipsis
|
overflow = TextOverflow.Ellipsis
|
||||||
|
|
|
@ -39,6 +39,8 @@ object Colors {
|
||||||
|
|
||||||
val Zinc200 = Color(228, 228, 231)
|
val Zinc200 = Color(228, 228, 231)
|
||||||
|
|
||||||
|
val Zinc500 = Color(0xFF71717a)
|
||||||
|
|
||||||
val Zinc700 = Color(63, 63, 70)
|
val Zinc700 = Color(63, 63, 70)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,9 @@ object Style {
|
||||||
|
|
||||||
val HeaderFontWeight: FontWeight = FontWeight.Bold
|
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
|
val ListItemHeaderWeight = FontWeight.Medium // couldn't believe it, the FontWeights look different on Desktop and Android
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue