Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7e6f70e22b | ||
|
|
9b620a2f13 |
2 changed files with 31 additions and 34 deletions
|
|
@ -187,7 +187,7 @@ private fun EventCard(event: AgendaEvent) {
|
|||
.width(4.dp)
|
||||
.fillMaxHeight()
|
||||
.clip(RoundedCornerShape(2.dp))
|
||||
.background(Color(event.calendarColor)),
|
||||
.background(Color(event.calendarColor).copy(alpha = 1f)),
|
||||
)
|
||||
|
||||
Spacer(Modifier.width(12.dp))
|
||||
|
|
|
|||
|
|
@ -217,40 +217,37 @@ class AgendaWidget : GlanceAppWidget() {
|
|||
|
||||
Spacer(GlanceModifier.width(8.dp))
|
||||
|
||||
// color bar as left border - stretches with content automatically
|
||||
Box(
|
||||
// color indicator
|
||||
Spacer(
|
||||
modifier = GlanceModifier
|
||||
.defaultWeight()
|
||||
.background(GlanceTheme.colors.primary)
|
||||
.cornerRadius(4.dp),
|
||||
) {
|
||||
Column(
|
||||
modifier = GlanceModifier
|
||||
.fillMaxWidth()
|
||||
.padding(start = 3.dp)
|
||||
.background(GlanceTheme.colors.widgetBackground),
|
||||
) {
|
||||
Column(modifier = GlanceModifier.padding(start = 8.dp, top = 2.dp, bottom = 2.dp)) {
|
||||
Text(
|
||||
text = event.title,
|
||||
style = TextStyle(
|
||||
color = GlanceTheme.colors.onSurface,
|
||||
fontSize = 13.sp,
|
||||
fontWeight = FontWeight.Medium,
|
||||
),
|
||||
maxLines = 2,
|
||||
)
|
||||
if (event.location != null) {
|
||||
Text(
|
||||
text = event.location,
|
||||
style = TextStyle(
|
||||
color = GlanceTheme.colors.onSurfaceVariant,
|
||||
fontSize = 11.sp,
|
||||
),
|
||||
maxLines = 1,
|
||||
)
|
||||
}
|
||||
}
|
||||
.width(3.dp)
|
||||
.height(16.dp)
|
||||
.cornerRadius(2.dp)
|
||||
.background(GlanceTheme.colors.primary),
|
||||
)
|
||||
|
||||
Spacer(GlanceModifier.width(8.dp))
|
||||
|
||||
// event details
|
||||
Column(modifier = GlanceModifier.defaultWeight()) {
|
||||
Text(
|
||||
text = event.title,
|
||||
style = TextStyle(
|
||||
color = GlanceTheme.colors.onSurface,
|
||||
fontSize = 13.sp,
|
||||
fontWeight = FontWeight.Medium,
|
||||
),
|
||||
maxLines = 2,
|
||||
)
|
||||
if (event.location != null) {
|
||||
Text(
|
||||
text = event.location,
|
||||
style = TextStyle(
|
||||
color = GlanceTheme.colors.onSurfaceVariant,
|
||||
fontSize = 11.sp,
|
||||
),
|
||||
maxLines = 1,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue