little dark mod fix

fix/answer-animation
Lucas DELANIER 1 year ago
parent 5a4a27df9a
commit 98270138fc

@ -20,13 +20,13 @@ struct ChoiceFinalAnswerCell: View {
HStack{ HStack{
Spacer() Spacer()
Text(answer.response) Text(answer.response)
.textStyle(weight: .bold, color: selected ? AllInColors.whiteColor :rawColor, size: 40).padding(.vertical, 10) .textStyle(weight: .bold, color: selected ? .white :rawColor, size: 40).padding(.vertical, 10)
Spacer() Spacer()
} }
HStack{ HStack{
Spacer() Spacer()
OddCapsule(backgroundColor: selected ? AllInColors.whiteColor : AllInColors.purpleAccentColor, foregroundColor: selected ? AllInColors.purpleAccentColor : AllInColors.whiteColor ,odd: answer.odds ).padding(.trailing,20).scaleEffect(0.9) OddCapsule(backgroundColor: selected ? .white : AllInColors.purpleAccentColor, foregroundColor: selected ? AllInColors.purpleAccentColor : .white ,odd: answer.odds ).padding(.trailing,20).scaleEffect(0.9)
} }
}.background(selected ? AllInColors.purpleAccentColor : AllInColors.whiteColor).cornerRadius(17) }.background(selected ? AllInColors.purpleAccentColor : .white).cornerRadius(17)
} }
} }

@ -52,7 +52,7 @@ struct BetEndingValidation: View {
.multilineTextAlignment(.center) .multilineTextAlignment(.center)
Text("Veuillez choisir la réponse finale:") Text("Veuillez choisir la réponse finale:")
.font(.system(size: 17)) .font(.system(size: 17))
.foregroundStyle(AllInColors.whiteColor) .foregroundStyle(.white)
.fontWeight(.bold) .fontWeight(.bold)
.padding(.top, 30) .padding(.top, 30)
.padding(.bottom, 10) .padding(.bottom, 10)
@ -75,7 +75,7 @@ struct BetEndingValidation: View {
} label: { } label: {
Text("Valider") Text("Valider")
.font(.system(size: 23)) .font(.system(size: 23))
.foregroundColor(AllInColors.whiteColor) .foregroundColor(.white)
.fontWeight(.bold) .fontWeight(.bold)
.frame(maxWidth: .infinity) .frame(maxWidth: .infinity)
.padding(.vertical, 3) .padding(.vertical, 3)

Loading…
Cancel
Save