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) ->
|
) { (y, m) ->
|
||||||
Text(
|
Text(
|
||||||
text = "${y}年${m}月",
|
text = "${y}年${m}月",
|
||||||
|
color = MaterialTheme.colorScheme.onBackground,
|
||||||
style = MaterialTheme.typography.titleLarge
|
style = MaterialTheme.typography.titleLarge
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -84,6 +85,7 @@ fun MonthHeader(
|
|||||||
) { week ->
|
) { week ->
|
||||||
Text(
|
Text(
|
||||||
text = "第${week}周",
|
text = "第${week}周",
|
||||||
|
color = MaterialTheme.colorScheme.onBackground,
|
||||||
style = MaterialTheme.typography.bodySmall
|
style = MaterialTheme.typography.bodySmall
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -347,6 +347,7 @@ fun YearHeader(
|
|||||||
) { y ->
|
) { y ->
|
||||||
Text(
|
Text(
|
||||||
text = "${y}年",
|
text = "${y}年",
|
||||||
|
color = MaterialTheme.colorScheme.onBackground,
|
||||||
style = MaterialTheme.typography.titleLarge,
|
style = MaterialTheme.typography.titleLarge,
|
||||||
fontWeight = FontWeight.Bold
|
fontWeight = FontWeight.Bold
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user