ctlCandUniv // Ensure color palettes on macOS 10.13 and earlier.
This commit is contained in:
parent
fb2bb4e0b7
commit
2316309d4d
|
@ -168,7 +168,11 @@ private class vwrCandidateUniversal: NSView {
|
||||||
result = NSColor.systemBlue
|
result = NSColor.systemBlue
|
||||||
default: break
|
default: break
|
||||||
}
|
}
|
||||||
let blendingAgainstTarget: NSColor = IME.isDarkMode ? NSColor.black : NSColor.white
|
var blendingAgainstTarget: NSColor = IME.isDarkMode ? NSColor.black : NSColor.white
|
||||||
|
if #unavailable(macOS 10.14) {
|
||||||
|
colorBlendAmount = 0.3
|
||||||
|
blendingAgainstTarget = NSColor.white
|
||||||
|
}
|
||||||
return result.blended(withFraction: colorBlendAmount, of: blendingAgainstTarget)!
|
return result.blended(withFraction: colorBlendAmount, of: blendingAgainstTarget)!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue