Skip to content

Commit

Permalink
Merge pull request #12 from ReneeVandervelde/schedule-labels
Browse files Browse the repository at this point in the history
Add Sleep/Wake labels into UI
  • Loading branch information
ReneeVandervelde authored Feb 18, 2024
2 parents 0daa1d1 + de9b44a commit 39b7d86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ internal object NotificationSettingElements {
notificationController: NotificationController,
): Array<UiElement> {
return arrayOf(
TextElement(
text = "Settings",
style = TextStyle.H2,
),
ElementList(
items = createWakeAlarmSettings(state, notificationController),
groupingStyle = GroupingStyle.Unified,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ internal object ScheduleElements {
fun create(schedule: Schedule): Array<UiElement> {
return arrayOf(
TextElement("Schedule", style = TextStyle.H1),
TextElement("Wake: ${schedule.wake.localTime}"),
TextElement("Sunrise: ${schedule.sunrise.localTime}"),
TextElement(
text = "Settings",
style = TextStyle.H2,
)
TextElement("Sleep: ${schedule.sleep.localTime}"),
)
}
}

0 comments on commit 39b7d86

Please sign in to comment.