Skip to content

Commit 19972d3

Browse files
committed
Fix bar chart colors
1 parent f362acc commit 19972d3

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

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

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ import ColorStudio
33
import SwiftUI
44

55
struct UIAppColor {
6-
static func primary(_ shade: ColorStudioShade) -> UIColor {
7-
CSColor.Blue.shade(shade)
8-
}
9-
106
static func accent(_ shade: ColorStudioShade) -> UIColor {
117
CSColor.Pink.shade(shade)
128
}
@@ -91,30 +87,41 @@ struct UIAppColor {
9187

9288
#if IS_JETPACK
9389
static let tint = UIColor.label
90+
9491
static let brand = UIColor(light: CSColor.JetpackGreen.shade(.shade40), dark: CSColor.JetpackGreen.shade(.shade30))
9592

9693
static func brand(_ shade: ColorStudioShade) -> UIColor {
9794
CSColor.JetpackGreen.shade(shade)
9895
}
96+
97+
static let primary = CSColor.JetpackGreen.base
98+
99+
static func primary(_ shade: ColorStudioShade) -> UIColor {
100+
CSColor.JetpackGreen.shade(shade)
101+
}
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
}
112+
113+
static let primary = CSColor.Blue.base
114+
115+
static func primary(_ shade: ColorStudioShade) -> UIColor {
116+
CSColor.Blue.shade(shade)
117+
}
108118
#endif
109119

110120
static let divider = CSColor.Gray.shade(.shade10)
111121
static let error = CSColor.Red.base
112122
static let gray = CSColor.Gray.base
113123
static let blue = CSColor.Blue.base
114124

115-
/// - warning: soft-deprecated, use `UIAppColor.tint`.
116-
static let primary = brand
117-
118125
static let success = CSColor.Green.base
119126
static let text = CSColor.Gray.shade(.shade80)
120127
static let textSubtle = CSColor.Gray.shade(.shade50)

0 commit comments

Comments
 (0)