Skip to content

Commit

Permalink
Fix stats map colors
Browse files Browse the repository at this point in the history
  • Loading branch information
jkmassel committed Sep 24, 2024
1 parent 81d0460 commit cd8a5a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions WordPress/Classes/Utility/App Configuration/AppColor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,19 @@ struct UIAppColor {
#if IS_JETPACK
static let tint = UIColor.label
static let brand = UIColor(light: CSColor.JetpackGreen.shade(.shade40), dark: CSColor.JetpackGreen.shade(.shade30))

static func brand(_ shade: ColorStudioShade) -> UIColor {
CSColor.JetpackGreen.shade(shade)
}
#endif

#if IS_WORDPRESS
static let tint = brand
static let brand = CSColor.WordPressBlue.base

static func brand(_ shade: ColorStudioShade) -> UIColor {
CSColor.WordPressBlue.shade(shade)
}
#endif

static let divider = CSColor.Gray.shade(.shade10)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ private extension CountriesMapView {

func mapColors() -> [UIColor] {
if traitCollection.userInterfaceStyle == .dark {
return [UIAppColor.primary(.shade90), UIAppColor.primary]
return [WPStyleGuide.Stats.mapBackground, UIAppColor.brand]
} else {
return [UIAppColor.primary(.shade5), UIAppColor.primary]
return [WPStyleGuide.Stats.mapBackground, UIAppColor.brand]
}
}

Expand Down

0 comments on commit cd8a5a4

Please sign in to comment.