Skip to content

Commit

Permalink
Add Sleep/Wake labels into UI
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneeVandervelde committed Feb 18, 2024
1 parent aa371b8 commit de9b44a
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 de9b44a

Please sign in to comment.