Skip to content

Commit b7d9d19

Browse files
committed
fix dark mode
1 parent 5f4879d commit b7d9d19

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

FitCount/ExerciseDetailsView.swift

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ struct TitleNavBarItem: View {
1515
var body: some View {
1616
VStack {
1717
Text(title)
18-
.foregroundColor(Color.gray)
1918
.font(.subheadline)
2019
}
2120
.frame(maxWidth: .infinity, maxHeight: .infinity)
22-
.background(Color.white)
2321
}
2422
}
2523

@@ -52,19 +50,16 @@ struct ExerciseDetailsView: View {
5250
VStack {
5351
Text("Select the number of reps")
5452
.font(.headline)
55-
.foregroundColor(.black)
5653
.padding(.top, 8)
5754

5855
Picker("Reps", selection: $nReps) {
5956
ForEach(1...100, id: \.self) { number in
6057
Text("\(number) reps")
61-
.foregroundColor(.black)
6258
}
6359
}
6460
.pickerStyle(WheelPickerStyle())
6561
}
6662
.clipped()
67-
.background(Color.white)
6863
.cornerRadius(10)
6964
.shadow(color: Color.black.opacity(0.2), radius: 4, x: 0, y: 2)
7065
.padding()
@@ -75,15 +70,13 @@ struct ExerciseDetailsView: View {
7570
VStack {
7671
Text("Select the time of the exercise")
7772
.font(.headline)
78-
.foregroundColor(.black)
7973
.padding(.top, 8)
8074

8175
HStack{
8276

8377
Picker("Minutes", selection: $nMinutes) {
8478
ForEach(0...30, id: \.self) { number in
8579
Text("\(number) min")
86-
.foregroundColor(.black)
8780
}
8881
}
8982
.onChange(of: nMinutes) { min in
@@ -98,7 +91,6 @@ struct ExerciseDetailsView: View {
9891
Picker("Seconds", selection: $nSeconds) {
9992
ForEach(0...59, id: \.self) { number in
10093
Text("\(number) sec")
101-
.foregroundColor(.black)
10294
}
10395
}
10496
.onChange(of: nSeconds) { sec in
@@ -114,7 +106,6 @@ struct ExerciseDetailsView: View {
114106

115107
}
116108
.clipped()
117-
.background(Color.white)
118109
.cornerRadius(10)
119110
.shadow(color: Color.black.opacity(0.2), radius: 4, x: 0, y: 2)
120111
.padding().pagerTabItem(tag: 2) {
@@ -126,7 +117,7 @@ struct ExerciseDetailsView: View {
126117
Text("Start workout")
127118
.foregroundColor(.white)
128119
.padding()
129-
.background(Color(#colorLiteral(red: 0.3254901961, green: 0.4431372549, blue: 1, alpha: 1))) // Set background color to the main color
120+
.background(.indigo) // Set background color to the main color
130121
.cornerRadius(8) // Add corner radius for a rounded look
131122

132123
}

FitCount/Workout/QuickPoseBasicView.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,6 @@ struct QuickPoseBasicView: View {
214214
}
215215
}
216216
}
217-
218-
219217
.navigationBarBackButtonHidden(true)
220218
.toolbar(.hidden, for: .tabBar)
221219
}

FitCount/Workout/WorkoutResultsView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct WorkoutResultsView: View {
2323
Text("Finish workout")
2424
.foregroundColor(.white)
2525
.padding()
26-
.background(Color(#colorLiteral(red: 0.3254901961, green: 0.4431372549, blue: 1, alpha: 1))) // Set background color to the main color
26+
.background(.indigo) // Set background color to the main color
2727
.cornerRadius(8) // Add corner radius for a rounded look
2828
}.padding()
2929
}

0 commit comments

Comments
 (0)