Skip to content

Commit 30056b6

Browse files
committed
Update UIAppColor.primary
1 parent d605731 commit 30056b6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

WordPress/Classes/Utility/App Configuration/AppColor.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,25 +87,31 @@ struct UIAppColor {
8787

8888
#if IS_JETPACK
8989
static let tint = UIColor.label
90+
9091
static let brand = UIColor(light: CSColor.JetpackGreen.shade(.shade40), dark: CSColor.JetpackGreen.shade(.shade30))
9192

9293
static func brand(_ shade: ColorStudioShade) -> UIColor {
9394
CSColor.JetpackGreen.shade(shade)
9495
}
9596

97+
static let primary = CSColor.JetpackGreen.base
98+
9699
static func primary(_ shade: ColorStudioShade) -> UIColor {
97100
CSColor.JetpackGreen.shade(shade)
98101
}
99102
#endif
100103

101104
#if IS_WORDPRESS
102105
static let tint = brand
106+
103107
static let brand = CSColor.WordPressBlue.base
104108

105109
static func brand(_ shade: ColorStudioShade) -> UIColor {
106110
CSColor.WordPressBlue.shade(shade)
107111
}
108112

113+
static let primary = CSColor.Blue.base
114+
109115
static func primary(_ shade: ColorStudioShade) -> UIColor {
110116
CSColor.Blue.shade(shade)
111117
}
@@ -116,9 +122,6 @@ struct UIAppColor {
116122
static let gray = CSColor.Gray.base
117123
static let blue = CSColor.Blue.base
118124

119-
/// - warning: soft-deprecated, use `UIAppColor.tint`.
120-
static let primary = brand
121-
122125
static let success = CSColor.Green.base
123126
static let text = CSColor.Gray.shade(.shade80)
124127
static let textSubtle = CSColor.Gray.shade(.shade50)

0 commit comments

Comments
 (0)