diff --git a/Sources/AllInApp/AllIn/Components/ChoiceFinalAnswerCell.swift b/Sources/AllInApp/AllIn/Components/ChoiceFinalAnswerCell.swift index eeefe0f..8409cae 100644 --- a/Sources/AllInApp/AllIn/Components/ChoiceFinalAnswerCell.swift +++ b/Sources/AllInApp/AllIn/Components/ChoiceFinalAnswerCell.swift @@ -20,13 +20,13 @@ struct ChoiceFinalAnswerCell: View { HStack{ Spacer() 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() } HStack{ 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) } } diff --git a/Sources/AllInApp/AllIn/Views/BetEndingValidationView.swift b/Sources/AllInApp/AllIn/Views/BetEndingValidationView.swift index 16d795f..7d84fad 100644 --- a/Sources/AllInApp/AllIn/Views/BetEndingValidationView.swift +++ b/Sources/AllInApp/AllIn/Views/BetEndingValidationView.swift @@ -52,7 +52,7 @@ struct BetEndingValidation: View { .multilineTextAlignment(.center) Text("Veuillez choisir la réponse finale:") .font(.system(size: 17)) - .foregroundStyle(AllInColors.whiteColor) + .foregroundStyle(.white) .fontWeight(.bold) .padding(.top, 30) .padding(.bottom, 10) @@ -75,7 +75,7 @@ struct BetEndingValidation: View { } label: { Text("Valider") .font(.system(size: 23)) - .foregroundColor(AllInColors.whiteColor) + .foregroundColor(.white) .fontWeight(.bold) .frame(maxWidth: .infinity) .padding(.vertical, 3)