clean up ActiveWorkoutSession
This commit is contained in:
@@ -13,8 +13,13 @@ struct ActiveWorkoutSessionControls: View {
|
||||
var body: some View {
|
||||
|
||||
VStack {
|
||||
SimpleStopWatch(
|
||||
startDate: session.startDate,
|
||||
duration: $session.workoutDuration)
|
||||
.font(.system(.largeTitle, design: .monospaced))
|
||||
.fontWeight(.bold)
|
||||
HStack {
|
||||
Text(session.getCurrentTodo())
|
||||
Text(session.getCurrentExerciseName())
|
||||
.font(.system(size: 24, weight: .bold, design: .rounded))
|
||||
}
|
||||
ProgressView("",
|
||||
@@ -32,7 +37,7 @@ struct ActiveWorkoutSessionControls: View {
|
||||
}
|
||||
.buttonStyle(.borderedProminent)
|
||||
.fontWeight(.bold)
|
||||
.tint(.primary)
|
||||
.tint(.accentColor)
|
||||
Button(action: {
|
||||
// TODO: Implement proper Pausing
|
||||
session.isPaused = true
|
||||
@@ -56,7 +61,7 @@ struct ActiveWorkoutSessionControls: View {
|
||||
}
|
||||
.buttonStyle(.borderedProminent)
|
||||
.fontWeight(.bold)
|
||||
.tint(.primary)
|
||||
.tint(.accentColor)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user