Skip to content

Commit

Permalink
Remove compact clock widget divider when no clock is selected
Browse files Browse the repository at this point in the history
Close #1098
  • Loading branch information
MM2-0 committed Dec 5, 2024
1 parent 8c4bfb7 commit 62a45c5
Showing 1 changed file with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,15 +213,17 @@ fun ClockWidget(
provider = partProvider,
)
}
Box(
modifier = Modifier
.padding(horizontal = 16.dp)
.height(56.dp)
.width(2.dp)
.background(
LocalContentColor.current
),
)
if (clockStyle !is ClockWidgetStyle.Empty) {
Box(
modifier = Modifier
.padding(horizontal = 16.dp)
.height(56.dp)
.width(2.dp)
.background(
LocalContentColor.current
),
)
}
Box(
modifier = Modifier.clickable(
enabled = clockStyle !is ClockWidgetStyle.Empty,
Expand Down

0 comments on commit 62a45c5

Please sign in to comment.