From 0d76b44c4e19f7a5526a6940f8b11b489ceda817 Mon Sep 17 00:00:00 2001 From: xfy Date: Tue, 19 May 2026 16:17:30 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E8=8F=9C=E5=8D=95=E9=81=AE=E7=BD=A9?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=85=A8=E9=80=8F=E6=98=8E=E5=B9=B6=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E6=B7=A1=E5=85=A5=E6=B7=A1=E5=87=BA=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 (1M context) --- .../kotlin/plus/rua/project/ui/CalendarMonthView.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/shared/src/commonMain/kotlin/plus/rua/project/ui/CalendarMonthView.kt b/shared/src/commonMain/kotlin/plus/rua/project/ui/CalendarMonthView.kt index 1a4a8dc..8d8b9e4 100644 --- a/shared/src/commonMain/kotlin/plus/rua/project/ui/CalendarMonthView.kt +++ b/shared/src/commonMain/kotlin/plus/rua/project/ui/CalendarMonthView.kt @@ -1,6 +1,8 @@ package plus.rua.project.ui import androidx.compose.animation.AnimatedVisibility +import androidx.compose.animation.EnterTransition +import androidx.compose.animation.ExitTransition import androidx.compose.animation.core.FastOutSlowInEasing import androidx.compose.animation.core.tween import androidx.compose.animation.fadeIn @@ -403,11 +405,11 @@ fun CalendarMonthView( MenuIcon() } - // Scrim:菜单展开时覆盖全屏,点击关闭 + // Scrim:全透明,仅拦截点击关闭菜单,无动画 AnimatedVisibility( visible = isMenuExpanded, - enter = fadeIn(tween(300)), - exit = fadeOut(tween(200)) + enter = EnterTransition.None, + exit = ExitTransition.None ) { Box( modifier = Modifier @@ -415,7 +417,6 @@ fun CalendarMonthView( .pointerInput(Unit) { detectTapGestures { isMenuExpanded = false } } - .background(Color.Black.copy(alpha = 0.32f)) ) }