fix: 标题文本显式指定 onBackground 颜色,适配深色主题

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
xfy 2026-05-19 15:46:30 +08:00
parent 26e977401f
commit fb52d30509
2 changed files with 3 additions and 0 deletions

View File

@ -65,6 +65,7 @@ fun MonthHeader(
) { (y, m) ->
Text(
text = "${y}${m}",
color = MaterialTheme.colorScheme.onBackground,
style = MaterialTheme.typography.titleLarge
)
}
@ -84,6 +85,7 @@ fun MonthHeader(
) { week ->
Text(
text = "${week}",
color = MaterialTheme.colorScheme.onBackground,
style = MaterialTheme.typography.bodySmall
)
}

View File

@ -347,6 +347,7 @@ fun YearHeader(
) { y ->
Text(
text = "${y}",
color = MaterialTheme.colorScheme.onBackground,
style = MaterialTheme.typography.titleLarge,
fontWeight = FontWeight.Bold
)