Voltaire // Disable Rounded Window Corner on macOS 10.11-12.

- macOS 10.11 cannot always render rounded window corner correctly.
- macOS 10.12 users are strongly suggested to upgrade to at least macOS 10.13, especially Hackintosh users for better NVMe support. TBO vChewing is considering of removing macOS 10.12 from the supported OS list.
This commit is contained in:
ShikiSuen 2022-03-02 01:44:10 +08:00
parent 07c277d03a
commit 8bd0fa98ac
2 changed files with 6 additions and 2 deletions

View File

@ -105,7 +105,9 @@ fileprivate class HorizontalCandidateView: NSView {
self.wantsLayer = true
self.layer?.borderColor = NSColor.selectedMenuItemTextColor.withAlphaComponent(0.30).cgColor
self.layer?.borderWidth = 1.0
if #available(macOS 10.13, *) {
self.layer?.cornerRadius = 6.0
}
let bounds = self.bounds
NSColor.controlBackgroundColor.setFill() // Candidate list panel base background

View File

@ -111,7 +111,9 @@ fileprivate class VerticalCandidateView: NSView {
self.wantsLayer = true
self.layer?.borderColor = NSColor.selectedMenuItemTextColor.withAlphaComponent(0.30).cgColor
self.layer?.borderWidth = 1.0
if #available(macOS 10.13, *) {
self.layer?.cornerRadius = 6.0
}
let bounds = self.bounds
NSColor.controlBackgroundColor.setFill() // Candidate list panel base background