design(calendar): деталь события и пилюли по живой теме
Заголовок события 18/600 (модалки темы); пилюля события в неделе — #ECF9DE с рамкой #70B62B r4 (был полупрозрачный зелёный r6). Лейблы детали уже серые, кнопки — дизайн-система (градиентные пилюли) — совпадали. Наш bottom-sheet и список дня — осознанная моб. адаптация. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
+11
-3
@@ -829,12 +829,14 @@ fun CalendarEventRow(
|
|||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
private fun CalendarEventChip(event: CalendarEventItem, onClick: () -> Unit) {
|
private fun CalendarEventChip(event: CalendarEventItem, onClick: () -> Unit) {
|
||||||
|
// Живая тема: пилюля события — #ECF9DE с рамкой #70B62B, r4, текст 12/16
|
||||||
Text(
|
Text(
|
||||||
event.summary,
|
event.summary,
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.clip(RoundedCornerShape(6.dp))
|
.clip(RoundedCornerShape(4.dp))
|
||||||
.background(F7Colors.Primary.copy(alpha = 0.15f))
|
.background(F7Colors.PrimaryLight)
|
||||||
|
.border(1.dp, F7Colors.Primary, RoundedCornerShape(4.dp))
|
||||||
.clickable(onClick = onClick)
|
.clickable(onClick = onClick)
|
||||||
.padding(horizontal = 6.dp, vertical = 4.dp),
|
.padding(horizontal = 6.dp, vertical = 4.dp),
|
||||||
style = MaterialTheme.typography.labelSmall,
|
style = MaterialTheme.typography.labelSmall,
|
||||||
@@ -1093,7 +1095,13 @@ fun CalendarEventDetailSheet(
|
|||||||
.padding(bottom = 28.dp),
|
.padding(bottom = 28.dp),
|
||||||
verticalArrangement = Arrangement.spacedBy(12.dp),
|
verticalArrangement = Arrangement.spacedBy(12.dp),
|
||||||
) {
|
) {
|
||||||
Text(event.summary, style = MaterialTheme.typography.titleLarge, fontWeight = FontWeight.Bold)
|
// Живая тема: заголовки модалок 18/600
|
||||||
|
Text(
|
||||||
|
event.summary,
|
||||||
|
style = MaterialTheme.typography.titleMedium.copy(fontSize = 18.sp),
|
||||||
|
fontWeight = FontWeight.SemiBold,
|
||||||
|
color = F7Colors.TextPrimary,
|
||||||
|
)
|
||||||
CalendarDetailRow(
|
CalendarDetailRow(
|
||||||
iconUrl = "$base/themes/forbion/images/calendar/event-clock.svg",
|
iconUrl = "$base/themes/forbion/images/calendar/event-clock.svg",
|
||||||
label = "Время",
|
label = "Время",
|
||||||
|
|||||||
Reference in New Issue
Block a user