From de9b44a4d6fd75bef9123e0de444861ef9c2e432 Mon Sep 17 00:00:00 2001 From: Renee Vandervelde Date: Sun, 18 Feb 2024 10:55:42 -0600 Subject: [PATCH] Add Sleep/Wake labels into UI --- .../sleeps/state/screens/NotificationSettingElements.kt | 4 ++++ .../sleeps/state/screens/ScheduleElements.kt | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/state/src/commonMain/kotlin/com/inkapplications/sleeps/state/screens/NotificationSettingElements.kt b/state/src/commonMain/kotlin/com/inkapplications/sleeps/state/screens/NotificationSettingElements.kt index f6822b1..ad832c3 100644 --- a/state/src/commonMain/kotlin/com/inkapplications/sleeps/state/screens/NotificationSettingElements.kt +++ b/state/src/commonMain/kotlin/com/inkapplications/sleeps/state/screens/NotificationSettingElements.kt @@ -13,6 +13,10 @@ internal object NotificationSettingElements { notificationController: NotificationController, ): Array { return arrayOf( + TextElement( + text = "Settings", + style = TextStyle.H2, + ), ElementList( items = createWakeAlarmSettings(state, notificationController), groupingStyle = GroupingStyle.Unified, diff --git a/state/src/commonMain/kotlin/com/inkapplications/sleeps/state/screens/ScheduleElements.kt b/state/src/commonMain/kotlin/com/inkapplications/sleeps/state/screens/ScheduleElements.kt index 59b912a..48b80e6 100644 --- a/state/src/commonMain/kotlin/com/inkapplications/sleeps/state/screens/ScheduleElements.kt +++ b/state/src/commonMain/kotlin/com/inkapplications/sleeps/state/screens/ScheduleElements.kt @@ -9,11 +9,9 @@ internal object ScheduleElements { fun create(schedule: Schedule): Array { 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}"), ) } }