@@ -5,7 +5,9 @@ import WordPressAuthenticator
5
5
/// The colors in here intentionally do not support light or dark modes since they're the same on both.
6
6
///
7
7
struct JetpackPrologueStyleGuide {
8
- static let backgroundColor = UIColor ( red: 0.00 , green: 0.11 , blue: 0.18 , alpha: 1.00 )
8
+ static let backgroundColor = FeatureFlag . newLandingScreen. enabled ?
9
+ UIColor ( light: . muriel( color: . jetpackGreen, . shade5) , dark: . muriel( color: . jetpackGreen, . shade100) ) :
10
+ UIColor ( red: 0.00 , green: 0.11 , blue: 0.18 , alpha: 1.00 )
9
11
10
12
struct Title {
11
13
static let font : UIFont = WPStyleGuide . fontForTextStyle ( . title3, fontWeight: . semibold)
@@ -24,22 +26,26 @@ struct JetpackPrologueStyleGuide {
24
26
25
27
static let continueButtonStyle = NUXButtonStyle ( normal: . init( backgroundColor: . white,
26
28
borderColor: . white,
27
- titleColor: Self . backgroundColor) ,
29
+ titleColor: FeatureFlag . newLandingScreen . enabled ? . black : Self . backgroundColor) ,
28
30
29
31
highlighted: . init( backgroundColor: UIColor ( red: 1.00 , green: 1.00 , blue: 1.00 , alpha: 0.90 ) ,
30
32
borderColor: UIColor ( red: 1.00 , green: 1.00 , blue: 1.00 , alpha: 0.90 ) ,
31
- titleColor: Self . backgroundColor) ,
33
+ titleColor: FeatureFlag . newLandingScreen . enabled ? . black : Self . backgroundColor) ,
32
34
33
35
disabled: . init( backgroundColor: . white,
34
36
borderColor: . white,
35
37
titleColor: Self . backgroundColor) )
36
38
37
- static let siteAddressButtonStyle = NUXButtonStyle ( normal: . init( backgroundColor: Self . backgroundColor,
38
- borderColor: UIColor ( red: 1.00 , green: 1.00 , blue: 1.00 , alpha: 0.40 ) ,
39
+ static let siteAddressButtonStyle = NUXButtonStyle ( normal: . init( backgroundColor: FeatureFlag . newLandingScreen. enabled ?
40
+ UIColor . muriel ( color: . jetpackGreen, . shade50) :
41
+ Self . backgroundColor,
42
+ borderColor: FeatureFlag . newLandingScreen. enabled ? . clear : UIColor ( red: 1.00 , green: 1.00 , blue: 1.00 , alpha: 0.40 ) ,
39
43
titleColor: . white) ,
40
44
41
- highlighted: . init( backgroundColor: Self . backgroundColor,
42
- borderColor: UIColor ( red: 1.00 , green: 1.00 , blue: 1.00 , alpha: 0.20 ) ,
45
+ highlighted: . init( backgroundColor: FeatureFlag . newLandingScreen. enabled ?
46
+ UIColor . muriel ( color: . jetpackGreen, . shade90) :
47
+ Self . backgroundColor,
48
+ borderColor: FeatureFlag . newLandingScreen. enabled ? . clear : UIColor ( red: 1.00 , green: 1.00 , blue: 1.00 , alpha: 0.20 ) ,
43
49
titleColor: UIColor . white. withAlphaComponent ( 0.7 ) ) ,
44
50
45
51
disabled: . init( backgroundColor: . white,
0 commit comments