Make section headers lighter color. Issue #1225

This commit is contained in:
Maurice Parker 2019-11-01 09:55:17 -05:00
parent c9d5fefa49
commit 3629108b09
3 changed files with 43 additions and 1 deletions

View File

@ -133,6 +133,10 @@ struct AppAssets {
return UIColor(named: "secondaryAccentColor")! return UIColor(named: "secondaryAccentColor")!
}() }()
static var sectionHeaderColor: UIColor = {
return UIColor(named: "sectionHeaderColor")!
}()
static var shareImage: UIImage = { static var shareImage: UIImage = {
return UIImage(systemName: "square.and.arrow.up")! return UIImage(systemName: "square.and.arrow.up")!
}() }()

View File

@ -169,7 +169,7 @@ private extension MasterFeedTableViewSectionHeader {
func addBackgroundView() { func addBackgroundView() {
self.backgroundView = UIView(frame: self.bounds) self.backgroundView = UIView(frame: self.bounds)
self.backgroundView?.backgroundColor = UIColor.secondarySystemBackground self.backgroundView?.backgroundColor = AppAssets.sectionHeaderColor
} }
} }

View File

@ -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"
}
}
}
]
}