Rework the Apple Watch progress flow
Watch root lists every in-progress workout; picking an exercise runs a paged Ready -> work/rest -> Finish flow (One More + auto-firing Done), with a phase-dot row and brand-tinted count-up/down timers. Includes the configurable rest and auto-finish settings synced over WatchConnectivity and the wrist-down timer fix.
This commit is contained in:
@@ -22,6 +22,14 @@ extension Color {
|
||||
}
|
||||
}
|
||||
|
||||
/// Brand purple from the app logo (a touch brighter than the icon's `#7023BC`
|
||||
/// so it stays legible on the watch's black background). Used for the work phase —
|
||||
/// its count-up timer and progress dots.
|
||||
static let workTint = Color(red: 0.51, green: 0.22, blue: 0.84)
|
||||
|
||||
/// Light teal counterpart for the rest phase — its count-down timer and dots.
|
||||
static let restTint = Color(red: 0.44, green: 0.85, blue: 0.84)
|
||||
|
||||
/// Returns a darker shade by reducing HSB brightness (not opacity).
|
||||
func darker(by percentage: CGFloat = 0.2) -> Color {
|
||||
#if canImport(UIKit)
|
||||
|
||||
Reference in New Issue
Block a user