Change the separator to a custom separator color because the system color for dark mode was just too much.

This commit is contained in:
Maurice Parker 2020-11-19 13:53:51 -06:00
parent 006586ada6
commit bc7692f4ba
3 changed files with 18 additions and 14 deletions

View File

@ -257,6 +257,10 @@ struct AppAssets {
}
}()
static var timelineSeparatorColor: NSColor = {
return NSColor(named: "timelineSeparatorColor")!
}()
static var timelineStarSelected: RSImage! = {
return RSImage(named: "timelineStar")?.tinted(with: .white)
}()

View File

@ -61,7 +61,7 @@ class TimelineTableRowView : NSTableRowView {
separator = NSView()
separator!.translatesAutoresizingMaskIntoConstraints = false
separator!.wantsLayer = true
separator!.layer?.backgroundColor = NSColor.separatorColor.cgColor
separator!.layer?.backgroundColor = AppAssets.timelineSeparatorColor.cgColor
addSubview(separator!)
if #available(macOS 11.0, *) {
NSLayoutConstraint.activate([

View File

@ -1,21 +1,16 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
},
"colors" : [
{
"idiom" : "universal",
"color" : {
"color-space" : "gray-gamma-22",
"components" : {
"white" : "0.900",
"alpha" : "1.000"
"alpha" : "1.000",
"white" : "0.900"
}
}
},
"idiom" : "universal"
},
{
"idiom" : "universal",
"appearances" : [
{
"appearance" : "luminosity",
@ -24,8 +19,13 @@
],
"color" : {
"platform" : "osx",
"reference" : "gridColor"
}
"reference" : "quaternaryLabelColor"
},
"idiom" : "universal"
}
]
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}