Voltaire // Unify the window border color on all macOS builds.

This commit is contained in:
ShikiSuen 2022-03-02 01:52:04 +08:00
parent 8bd0fa98ac
commit c71c2ebfe2
2 changed files with 2 additions and 10 deletions

View File

@ -113,11 +113,7 @@ fileprivate class HorizontalCandidateView: NSView {
NSColor.controlBackgroundColor.setFill() // Candidate list panel base background NSColor.controlBackgroundColor.setFill() // Candidate list panel base background
NSBezierPath.fill(bounds) NSBezierPath.fill(bounds)
if #available(macOS 10.14, *) { NSColor.systemGray.withAlphaComponent(0.75).setStroke()
NSColor.separatorColor.setStroke()
} else {
NSColor.darkGray.setStroke()
}
NSBezierPath.strokeLine(from: NSPoint(x: bounds.size.width, y: 0.0), to: NSPoint(x: bounds.size.width, y: bounds.size.height)) NSBezierPath.strokeLine(from: NSPoint(x: bounds.size.width, y: 0.0), to: NSPoint(x: bounds.size.width, y: bounds.size.height))

View File

@ -119,11 +119,7 @@ fileprivate class VerticalCandidateView: NSView {
NSColor.controlBackgroundColor.setFill() // Candidate list panel base background NSColor.controlBackgroundColor.setFill() // Candidate list panel base background
NSBezierPath.fill(bounds) NSBezierPath.fill(bounds)
if #available(macOS 10.14, *) { NSColor.systemGray.withAlphaComponent(0.75).setStroke()
NSColor.separatorColor.setStroke()
} else {
NSColor.darkGray.setStroke()
}
NSBezierPath.strokeLine(from: NSPoint(x: bounds.size.width, y: 0.0), to: NSPoint(x: bounds.size.width, y: bounds.size.height)) NSBezierPath.strokeLine(from: NSPoint(x: bounds.size.width, y: 0.0), to: NSPoint(x: bounds.size.width, y: bounds.size.height))