fix: 月视图和年视图添加背景色,修复共享元素过渡动画

在 CalendarMonthView 的月视图和年视图根布局添加
.background(MaterialTheme.colorScheme.background),确保共享元素
过渡时非共享元素有正确的背景动画(fade+slide)。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
xfy 2026-05-22 14:15:44 +08:00
parent 0cdac663c9
commit ca02784d39

View File

@ -201,6 +201,7 @@ fun CalendarMonthView(
Box(
modifier = Modifier
.fillMaxSize()
.background(MaterialTheme.colorScheme.background)
.alpha(if (layoutReady) 1f else 0f)
) {
Column(
@ -269,6 +270,7 @@ fun CalendarMonthView(
Column(
modifier = Modifier
.fillMaxSize()
.background(MaterialTheme.colorScheme.background)
.padding(horizontal = HORIZONTAL_PADDING_DP.dp)
) {
YearHeader(