Skip to content

Commit

Permalink
Paywalls: fixed color in template 3 (#2980)
Browse files Browse the repository at this point in the history
Thanks to @joshdholtz for finding this.
  • Loading branch information
NachoSoto committed Aug 7, 2023
1 parent 701d806 commit bd91793
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions RevenueCatUI/Data/TestData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,10 @@ internal enum TestData {
light: .init(
background: "#272727",
text1: "#FFFFFF",
text2: "#B7B7B7",
callToActionBackground: "#FFFFFF",
callToActionForeground: "#000000",
accent1: "#F4E971",
accent2: "#B7B7B7"
accent1: "#F4E971"
)
),
termsOfServiceURL: URL(string: "https://revenuecat.com/tos")!
Expand Down
6 changes: 3 additions & 3 deletions RevenueCatUI/Templates/Template3View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct Template3View: TemplateViewType {
textWithNoIntroOffer: self.localization.offerDetails,
textWithIntroOffer: self.localization.offerDetailsWithIntroOffer,
introEligibility: self.introEligibility,
foregroundColor: self.configuration.colors.accent2Color
foregroundColor: self.configuration.colors.text2Color
)
.multilineTextAlignment(.center)
.font(.subheadline)
Expand All @@ -74,7 +74,7 @@ struct Template3View: TemplateViewType {
.padding(.bottom)

FooterView(configuration: self.configuration.configuration,
color: self.configuration.colors.accent2Color,
color: self.configuration.colors.text2Color,
purchaseHandler: self.purchaseHandler)
}
.padding(.horizontal)
Expand Down Expand Up @@ -154,7 +154,7 @@ private struct FeatureView: View {

if let content = self.feature.content {
Text(.init(content))
.foregroundStyle(self.colors.accent2Color)
.foregroundStyle(self.colors.text2Color)
.font(.body)
}
}
Expand Down
4 changes: 2 additions & 2 deletions Tests/TestingApps/SimpleApp/SimpleApp/SamplePaywalls.swift
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,10 @@ private extension SamplePaywallLoader {
light: .init(
background: "#272727",
text1: "#FFFFFF",
text2: "#B7B7B7",
callToActionBackground: "#FFFFFF",
callToActionForeground: "#000000",
accent1: "#F4E971",
accent2: "#B7B7B7"
accent1: "#F4E971"
)
),
termsOfServiceURL: Self.tosURL
Expand Down

0 comments on commit bd91793

Please sign in to comment.