Skip to content

Commit 6513f77

Browse files
authored
Merge pull request #19404 from wordpress-mobile/task/jetpack-landing-screen-ui-tweaks
Jetpack Landing Screen - Change gradient and button colors
2 parents cc0e640 + 399a200 commit 6513f77

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

WordPress/Classes/ViewRelated/NUX/WordPressAuthenticationManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ extension WordPressAuthenticationManager {
113113
var prologuePrimaryButtonStyle: NUXButtonStyle?
114114
var prologueSecondaryButtonStyle: NUXButtonStyle?
115115

116-
if FeatureFlag.newLandingScreen.enabled {
116+
if FeatureFlag.newLandingScreen.enabled, AppConfiguration.isWordPress {
117117
prologuePrimaryButtonStyle = SplashPrologueStyleGuide.primaryButtonStyle
118118
prologueSecondaryButtonStyle = SplashPrologueStyleGuide.secondaryButtonStyle
119119
} else {

WordPress/Jetpack/Classes/NUX/JetpackPrologueStyleGuide.swift

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,35 +13,38 @@ struct JetpackPrologueStyleGuide {
1313

1414
// Gradient overlay colors
1515
// new
16-
static let newGradientColor = UIColor(light: .muriel(color: .jetpackGreen, .shade5), dark: .muriel(color: .jetpackGreen, .shade100))
16+
static let newGradientColor = UIColor(light: .muriel(color: .jetpackGreen, .shade0), dark: .muriel(color: .jetpackGreen, .shade100))
1717
// combined
1818
static let gradientColor = FeatureFlag.newLandingScreen.enabled ? newGradientColor : oldBackgroundColor
1919

2020
// Continue with WordPress button colors
2121
// old
2222
static let oldContinueHighlightedFillColor = UIColor(red: 1.00, green: 1.00, blue: 1.00, alpha: 0.90)
2323
// new
24-
static let newContinueFillColor = UIColor.muriel(color: .jetpackGreen, .shade50)
25-
static let newContinueHighlightedFillColor = UIColor.muriel(color: .jetpackGreen, .shade90)
24+
static let newContinueFillColor = UIColor(light: .muriel(color: .jetpackGreen, .shade50), dark: .white)
25+
static let newContinueHighlightedFillColor = UIColor(light: .muriel(color: .jetpackGreen, .shade90), dark: whiteWithAlpha07)
26+
static let newContinueTextColor = UIColor(light: .white, dark: .muriel(color: .jetpackGreen, .shade80))
2627

2728
// combined
2829
static let continueFillColor = FeatureFlag.newLandingScreen.enabled ? newContinueFillColor : .white
2930
static let continueHighlightedFillColor = FeatureFlag.newLandingScreen.enabled ? newContinueHighlightedFillColor : oldContinueHighlightedFillColor
30-
static let continueTextColor = FeatureFlag.newLandingScreen.enabled ? .white : oldBackgroundColor
31+
static let continueTextColor = FeatureFlag.newLandingScreen.enabled ? newContinueTextColor : oldBackgroundColor
3132
static let continueHighlightedTextColor = FeatureFlag.newLandingScreen.enabled ? whiteWithAlpha07 : oldBackgroundColor
3233

3334

3435
// Enter your site address button
3536
// old
3637
static let oldSiteBorderColor = UIColor(red: 1.00, green: 1.00, blue: 1.00, alpha: 0.40)
38+
static let newSiteTextColor = UIColor(light: .muriel(color: .jetpackGreen, .shade90), dark: .white)
39+
static let newSiteHighlightedTextColor = UIColor(light: .muriel(color: .jetpackGreen, .shade50), dark: whiteWithAlpha07)
3740
static let oldSiteHighlightedBorderColor = UIColor(red: 1.00, green: 1.00, blue: 1.00, alpha: 0.20)
3841
// combined
39-
static let siteFillColor = FeatureFlag.newLandingScreen.enabled ? .white : oldBackgroundColor
40-
static let siteBorderColor = FeatureFlag.newLandingScreen.enabled ? .white : oldSiteBorderColor
41-
static let siteTextColor = FeatureFlag.newLandingScreen.enabled ? UIColor.black : UIColor.white
42+
static let siteFillColor = FeatureFlag.newLandingScreen.enabled ? .clear : oldBackgroundColor
43+
static let siteBorderColor = FeatureFlag.newLandingScreen.enabled ? .clear : oldSiteBorderColor
44+
static let siteTextColor = FeatureFlag.newLandingScreen.enabled ? newSiteTextColor : UIColor.white
4245
static let siteHighlightedFillColor = FeatureFlag.newLandingScreen.enabled ? whiteWithAlpha07 : oldBackgroundColor
4346
static let siteHighlightedBorderColor = FeatureFlag.newLandingScreen.enabled ? whiteWithAlpha07 : oldSiteHighlightedBorderColor
44-
static let siteHighlightedTextColor = FeatureFlag.newLandingScreen.enabled ? .black : whiteWithAlpha07
47+
static let siteHighlightedTextColor = FeatureFlag.newLandingScreen.enabled ? newSiteHighlightedTextColor : whiteWithAlpha07
4548

4649
// Color used in both old and versions
4750
static let whiteWithAlpha07 = UIColor.white.withAlphaComponent(0.7)

WordPress/Jetpack/Classes/NUX/JetpackPrologueViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class JetpackPrologueViewController: UIViewController {
4343
[endColor.cgColor, midTopColor.cgColor, midBottomColor.cgColor, startColor.cgColor] :
4444
[startColor.cgColor, endColor.cgColor]
4545

46-
gradientLayer.locations = FeatureFlag.newLandingScreen.enabled ? [0.0, 0.2, 0.5, 1.0] : [0.0, 0.9]
46+
gradientLayer.locations = FeatureFlag.newLandingScreen.enabled ? [0.0, 0.4, 0.6, 1.0] : [0.0, 0.9]
4747

4848
return gradientLayer
4949
}

0 commit comments

Comments
 (0)