refactor: remove redundant color attributes and improve color contrast handling

This commit is contained in:
Antoine Jaury
2026-10-19 15:53:25 +02:00
parent 0add1176db
commit 34cb8d24a4
10 changed files with 150 additions and 16 deletions
@@ -46,7 +46,6 @@ fun OnboardingInfoPage(
Text(
text = description,
style = MaterialTheme.typography.bodyLarge,
color = MaterialTheme.colorScheme.onSurfaceVariant,
textAlign = TextAlign.Center,
)
}
@@ -51,7 +51,6 @@ fun OnboardingLevelPage(
Text(
text = stringResource(Res.string.onboarding_level_description),
style = MaterialTheme.typography.bodyMedium,
color = MaterialTheme.colorScheme.onSurfaceVariant,
textAlign = TextAlign.Center,
)
LevelOption(
@@ -110,7 +109,6 @@ private fun LevelOption(
Text(
text = description,
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.onSurfaceVariant,
)
}
}
@@ -32,7 +32,7 @@ fun OnboardingPageIndicator(
if (index == currentPage) {
MaterialTheme.colorScheme.primary
} else {
MaterialTheme.colorScheme.surfaceVariant
MaterialTheme.colorScheme.onBackground
},
),
)