From 94861dc2f7d8945759f9ccf0f9a7d1dfffe43c0e Mon Sep 17 00:00:00 2001 From: xfy Date: Mon, 15 Jun 2026 16:41:07 +0800 Subject: [PATCH] style: apply spotless formatting --- core/src/main/kotlin/plus/rua/project/ui/DayCell.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/main/kotlin/plus/rua/project/ui/DayCell.kt b/core/src/main/kotlin/plus/rua/project/ui/DayCell.kt index 792e2aa..373996e 100644 --- a/core/src/main/kotlin/plus/rua/project/ui/DayCell.kt +++ b/core/src/main/kotlin/plus/rua/project/ui/DayCell.kt @@ -60,7 +60,7 @@ enum class DayCellState { } /** - * 单个日期单元格,显示日期数字并支持选中/今天/非当月状态。 + * 单个日期单元格,显示日期数字并支持选中/今天/非当月状态;生日日期左上角显示金色皇冠。 * * @param date 日期 * @param isCurrentMonth 是否属于当前显示月份 @@ -289,10 +289,11 @@ private fun DayCellImpl( modifier = Modifier .fillMaxSize() .semantics { + val birthdaySuffix = if (isBirthday) ",生日" else "" contentDescription = if (isToday) { - "今天 ${date.year}年${date.month.number}月${date.day}日" + "今天 ${date.year}年${date.month.number}月${date.day}日$birthdaySuffix" } else { - "${date.year}年${date.month.number}月${date.day}日" + "${date.year}年${date.month.number}月${date.day}日$birthdaySuffix" } } .clip(CircleShape)