From 8512bee27a3d730aa7da964c3892ec8cac5a770d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zo=C3=AB?= Date: Sun, 9 Aug 2026 17:57:58 +0200 Subject: [PATCH] fix(watch): remove default list row backgrounds for cleaner UI --- targets/watch/ContentView.swift | 3 +++ targets/watch/Views/WorkoutDetailView.swift | 2 ++ targets/watch/Views/WorkoutSummaryView.swift | 5 +++++ 3 files changed, 10 insertions(+) diff --git a/targets/watch/ContentView.swift b/targets/watch/ContentView.swift index 5fa4c1b..d399ec9 100644 --- a/targets/watch/ContentView.swift +++ b/targets/watch/ContentView.swift @@ -42,6 +42,7 @@ struct WorkoutListView: View { } .frame(maxWidth: .infinity) .padding(.vertical, 20) + .listRowBackground(.clear) } } else { Section("Saved Workouts") { @@ -64,6 +65,7 @@ struct WorkoutListView: View { .font(.caption) } } + .listRowBackground(.clear) } .onDelete { indexSet in workoutManager.deleteSavedWorkouts(at: indexSet) @@ -87,6 +89,7 @@ struct WorkoutListView: View { .foregroundColor(.green) .font(.caption) } + .listRowBackground(.clear) } .onDelete { indexSet in workoutManager.deleteCompletedWorkouts(at: indexSet) diff --git a/targets/watch/Views/WorkoutDetailView.swift b/targets/watch/Views/WorkoutDetailView.swift index 4bb7158..1d0c8af 100644 --- a/targets/watch/Views/WorkoutDetailView.swift +++ b/targets/watch/Views/WorkoutDetailView.swift @@ -33,6 +33,7 @@ struct WorkoutDetailView: View { .font(.caption) .foregroundColor(.secondary) } + .listRowBackground(.clear) } } @@ -57,6 +58,7 @@ struct WorkoutDetailView: View { .font(.caption) .foregroundColor(.secondary) .frame(maxWidth: .infinity) + .listRowBackground(.clear) } } } diff --git a/targets/watch/Views/WorkoutSummaryView.swift b/targets/watch/Views/WorkoutSummaryView.swift index e270946..c216bd0 100644 --- a/targets/watch/Views/WorkoutSummaryView.swift +++ b/targets/watch/Views/WorkoutSummaryView.swift @@ -18,6 +18,7 @@ struct WorkoutSummaryView: View { } .frame(maxWidth: .infinity) .padding(.vertical, 8) + .listRowBackground(.clear) } Section("Stats") { @@ -28,6 +29,7 @@ struct WorkoutSummaryView: View { Text(formatTime(summary.duration)) .monospacedDigit() } + .listRowBackground(.clear) HStack { Text("Distance") @@ -36,6 +38,7 @@ struct WorkoutSummaryView: View { Text("\(summary.totalDistance)m") .monospacedDigit() } + .listRowBackground(.clear) HStack { Text("Calories") @@ -44,6 +47,7 @@ struct WorkoutSummaryView: View { Text("\(summary.calories)kcal") .monospacedDigit() } + .listRowBackground(.clear) HStack { Text("Laps") @@ -52,6 +56,7 @@ struct WorkoutSummaryView: View { Text("\(summary.laps.count)") .monospacedDigit() } + .listRowBackground(.clear) } Section {