For FullscreenViews using now dark gray as header text color
This commit is contained in:
parent
a50f55daff
commit
f1c4c8ca13
|
@ -3,14 +3,15 @@ package net.codinux.banking.ui.composables.text
|
|||
import androidx.compose.material.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.text.style.TextAlign
|
||||
import net.codinux.banking.ui.config.Style
|
||||
|
||||
@Composable
|
||||
fun HeaderText(title: String, modifier: Modifier = Modifier, textAlign: TextAlign = TextAlign.Start) {
|
||||
fun HeaderText(title: String, modifier: Modifier = Modifier, textAlign: TextAlign = TextAlign.Start, textColor: Color = Style.HeaderTextColor) {
|
||||
Text(
|
||||
title,
|
||||
color = Style.HeaderTextColor,
|
||||
color = textColor,
|
||||
fontSize = Style.HeaderFontSize,
|
||||
fontWeight = Style.HeaderFontWeight,
|
||||
modifier = modifier,
|
||||
|
|
|
@ -16,6 +16,7 @@ import androidx.compose.ui.zIndex
|
|||
import net.codinux.banking.ui.composables.text.HeaderText
|
||||
import net.codinux.banking.ui.config.Colors
|
||||
import net.codinux.banking.ui.config.DI
|
||||
import net.codinux.banking.ui.config.Style
|
||||
|
||||
@Composable
|
||||
fun FullscreenViewBase(
|
||||
|
@ -32,7 +33,7 @@ fun FullscreenViewBase(
|
|||
Column(Modifier.fillMaxSize().zIndex(1000f).background(Color.White).padding(8.dp)) {
|
||||
|
||||
Row(Modifier.fillMaxWidth()) {
|
||||
HeaderText(title, Modifier.padding(top = 8.dp, bottom = 16.dp).weight(1f))
|
||||
HeaderText(title, Modifier.padding(top = 8.dp, bottom = 16.dp).weight(1f), textColor = Style.ListItemHeaderTextColor)
|
||||
|
||||
if (DI.platform.isDesktop) {
|
||||
TextButton(onClosed, colors = ButtonDefaults.buttonColors(contentColor = Colors.Zinc700, backgroundColor = Color.Transparent)) {
|
||||
|
|
Loading…
Reference in New Issue