diff --git a/iOS/AppAssets.swift b/iOS/AppAssets.swift index 527f0c95b..2dda0cf04 100644 --- a/iOS/AppAssets.swift +++ b/iOS/AppAssets.swift @@ -133,6 +133,10 @@ struct AppAssets { return UIColor(named: "secondaryAccentColor")! }() + static var sectionHeaderColor: UIColor = { + return UIColor(named: "sectionHeaderColor")! + }() + static var shareImage: UIImage = { return UIImage(systemName: "square.and.arrow.up")! }() diff --git a/iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift b/iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift index 7581e92ef..06689374f 100644 --- a/iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift +++ b/iOS/MasterFeed/Cell/MasterFeedTableViewSectionHeader.swift @@ -169,7 +169,7 @@ private extension MasterFeedTableViewSectionHeader { func addBackgroundView() { self.backgroundView = UIView(frame: self.bounds) - self.backgroundView?.backgroundColor = UIColor.secondarySystemBackground + self.backgroundView?.backgroundColor = AppAssets.sectionHeaderColor } } diff --git a/iOS/Resources/Assets.xcassets/sectionHeaderColor.colorset/Contents.json b/iOS/Resources/Assets.xcassets/sectionHeaderColor.colorset/Contents.json new file mode 100644 index 000000000..bdb1640bd --- /dev/null +++ b/iOS/Resources/Assets.xcassets/sectionHeaderColor.colorset/Contents.json @@ -0,0 +1,38 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "colors" : [ + { + "idiom" : "universal", + "color" : { + "color-space" : "srgb", + "components" : { + "red" : "245", + "alpha" : "1.000", + "blue" : "247", + "green" : "245" + } + } + }, + { + "idiom" : "universal", + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "color" : { + "color-space" : "srgb", + "components" : { + "red" : "33", + "alpha" : "1.000", + "blue" : "36", + "green" : "33" + } + } + } + ] +} \ No newline at end of file