clean up ActiveWorkoutSession

This commit is contained in:
Felix Förtsch
2024-11-12 14:47:59 +01:00
parent 19b3d89010
commit 370e070fcd
20 changed files with 281 additions and 238 deletions

View File

@@ -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)
}
}
}