diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/text/HeaderText.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/text/HeaderText.kt index c55308a..0ff0475 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/text/HeaderText.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/composables/text/HeaderText.kt @@ -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, diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/screens/FullscreenViewBase.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/screens/FullscreenViewBase.kt index 75c7417..6043570 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/screens/FullscreenViewBase.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/screens/FullscreenViewBase.kt @@ -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)) {