From 26e977401f171d27b8f53fafa16f64b8b6e7bb9d Mon Sep 17 00:00:00 2001 From: xfy Date: Tue, 19 May 2026 15:41:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=99=E6=97=A5=E5=8E=86=E6=A0=B9?= =?UTF-8?q?=E5=AE=B9=E5=99=A8=E5=92=8C=E6=97=A5=E6=9C=9F=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=83=8C=E6=99=AF=E8=89=B2=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E4=B8=BB=E9=A2=98=E5=88=87=E6=8D=A2=E9=80=8F=E5=BA=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - CalendarMonthView 根 Box 添加 background(MaterialTheme.colorScheme.background) - DayCell 班次标签和农历标签添加同色背景 Co-Authored-By: Claude Opus 4.7 (1M context) --- .../commonMain/kotlin/plus/rua/project/ui/CalendarMonthView.kt | 1 + shared/src/commonMain/kotlin/plus/rua/project/ui/DayCell.kt | 3 +++ 2 files changed, 4 insertions(+) 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 bf31745..1a4a8dc 100644 --- a/shared/src/commonMain/kotlin/plus/rua/project/ui/CalendarMonthView.kt +++ b/shared/src/commonMain/kotlin/plus/rua/project/ui/CalendarMonthView.kt @@ -203,6 +203,7 @@ fun CalendarMonthView( Box( modifier = modifier .fillMaxSize() + .background(MaterialTheme.colorScheme.background) .statusBarsPadding() .onSizeChanged { size -> screenWidthPx = size.width diff --git a/shared/src/commonMain/kotlin/plus/rua/project/ui/DayCell.kt b/shared/src/commonMain/kotlin/plus/rua/project/ui/DayCell.kt index c6562bf..02f2b0d 100644 --- a/shared/src/commonMain/kotlin/plus/rua/project/ui/DayCell.kt +++ b/shared/src/commonMain/kotlin/plus/rua/project/ui/DayCell.kt @@ -5,6 +5,7 @@ import androidx.compose.animation.core.FastOutSlowInEasing import androidx.compose.animation.core.animateFloat import androidx.compose.animation.core.tween import androidx.compose.animation.core.updateTransition +import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.interaction.MutableInteractionSource import androidx.compose.foundation.layout.Box @@ -291,6 +292,7 @@ fun DayCell( modifier = Modifier .align(shiftAlignment) .zIndex(1f) + .background(MaterialTheme.colorScheme.background) .then(shiftPadding) .padding(horizontal = 2.dp) ) @@ -305,6 +307,7 @@ fun DayCell( modifier = Modifier .align(Alignment.TopEnd) .zIndex(1f) + .background(MaterialTheme.colorScheme.background) .padding(top = 1.dp, end = 2.dp) .padding(horizontal = 2.dp) )