From ca02784d39ae51065fbf7c0f9fcaf0289aabfae0 Mon Sep 17 00:00:00 2001 From: xfy Date: Fri, 22 May 2026 14:15:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=88=E8=A7=86=E5=9B=BE=E5=92=8C?= =?UTF-8?q?=E5=B9=B4=E8=A7=86=E5=9B=BE=E6=B7=BB=E5=8A=A0=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E8=89=B2=EF=BC=8C=E4=BF=AE=E5=A4=8D=E5=85=B1=E4=BA=AB=E5=85=83?= =?UTF-8?q?=E7=B4=A0=E8=BF=87=E6=B8=A1=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 CalendarMonthView 的月视图和年视图根布局添加 .background(MaterialTheme.colorScheme.background),确保共享元素 过渡时非共享元素有正确的背景动画(fade+slide)。 Co-Authored-By: Claude Opus 4.7 (1M context) --- core/src/main/kotlin/plus/rua/project/ui/CalendarMonthView.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/main/kotlin/plus/rua/project/ui/CalendarMonthView.kt b/core/src/main/kotlin/plus/rua/project/ui/CalendarMonthView.kt index d32db87..cd1fdb4 100644 --- a/core/src/main/kotlin/plus/rua/project/ui/CalendarMonthView.kt +++ b/core/src/main/kotlin/plus/rua/project/ui/CalendarMonthView.kt @@ -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(