widget: two-height color bar, single-line title with ellipsis
This commit is contained in:
parent
7e6f70e22b
commit
1dbd96d961
1 changed files with 6 additions and 6 deletions
|
|
@ -217,14 +217,14 @@ class AgendaWidget : GlanceAppWidget() {
|
|||
|
||||
Spacer(GlanceModifier.width(8.dp))
|
||||
|
||||
// color indicator
|
||||
Spacer(
|
||||
// color indicator - height based on whether there's a second line
|
||||
val hasSecondLine = event.location != null || !event.allDay
|
||||
Box(
|
||||
modifier = GlanceModifier
|
||||
.width(3.dp)
|
||||
.height(16.dp)
|
||||
.size(width = 3.dp, height = if (hasSecondLine) 32.dp else 18.dp)
|
||||
.cornerRadius(2.dp)
|
||||
.background(GlanceTheme.colors.primary),
|
||||
)
|
||||
) {}
|
||||
|
||||
Spacer(GlanceModifier.width(8.dp))
|
||||
|
||||
|
|
@ -237,7 +237,7 @@ class AgendaWidget : GlanceAppWidget() {
|
|||
fontSize = 13.sp,
|
||||
fontWeight = FontWeight.Medium,
|
||||
),
|
||||
maxLines = 2,
|
||||
maxLines = 1,
|
||||
)
|
||||
if (event.location != null) {
|
||||
Text(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue