fix: 标题文本显式指定 onBackground 颜色,适配深色主题
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
26e977401f
commit
fb52d30509
@ -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
|
||||
)
|
||||
}
|
||||
|
||||
@ -347,6 +347,7 @@ fun YearHeader(
|
||||
) { y ->
|
||||
Text(
|
||||
text = "${y}年",
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
style = MaterialTheme.typography.titleLarge,
|
||||
fontWeight = FontWeight.Bold
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user