From a0b573cbfe1004b78915d113c7524aafcf6a4a75 Mon Sep 17 00:00:00 2001 From: Barnabas Balogh Date: Sat, 2 May 2026 19:48:21 +0200 Subject: [PATCH] feat(sectionheader): update header color and button text color for improved visibility --- .../bbara/purefin/ui/common/header/SectionHeader.kt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/hu/bbara/purefin/ui/common/header/SectionHeader.kt b/app/src/main/java/hu/bbara/purefin/ui/common/header/SectionHeader.kt index 6408e27e..92de7d53 100644 --- a/app/src/main/java/hu/bbara/purefin/ui/common/header/SectionHeader.kt +++ b/app/src/main/java/hu/bbara/purefin/ui/common/header/SectionHeader.kt @@ -9,6 +9,7 @@ import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width import androidx.compose.material.icons.Icons import androidx.compose.material.icons.automirrored.outlined.ArrowForward +import androidx.compose.material3.ButtonDefaults import androidx.compose.material3.Icon import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text @@ -26,6 +27,8 @@ fun SectionHeader( modifier: Modifier = Modifier, onActionClick: () -> Unit = {} ) { + val headerColor = MaterialTheme.colorScheme.onSurface + Row( modifier = modifier .fillMaxWidth() @@ -36,10 +39,14 @@ fun SectionHeader( Text( text = title, style = MaterialTheme.typography.titleLarge, - fontWeight = FontWeight.Bold + fontWeight = FontWeight.Bold, + color = headerColor ) if (actionLabel != null) { - TextButton(onClick = onActionClick) { + TextButton( + onClick = onActionClick, + colors = ButtonDefaults.textButtonColors(contentColor = headerColor) + ) { Text(text = actionLabel) Spacer(modifier = Modifier.width(4.dp)) Icon(