TDKCandidates // Patch the bgColor of the current candidate line.

This commit is contained in:
ShikiSuen 2023-11-26 16:56:44 +08:00
parent 93da928342
commit 787bbd5c0f
1 changed files with 1 additions and 10 deletions

View File

@ -208,16 +208,7 @@ private extension VwrCandidateTDKAppKit {
private extension VwrCandidateTDKAppKit {
private func lineBackground(isCurrentLine: Bool, isMatrix: Bool) -> NSColor {
if !isCurrentLine { return .clear }
let absBg: NSColor = NSApplication.isDarkMode ? .black : .white
switch thePool.layout {
case .horizontal where isMatrix:
return NSApplication.isDarkMode ? .controlTextColor.withAlphaComponent(0.05) : .white
case .vertical where isMatrix:
return absBg.withAlphaComponent(0.9)
default:
return .clear
}
(isCurrentLine && isMatrix) ? (NSApplication.isDarkMode ? .controlTextColor.withAlphaComponent(0.05) : .white) : .clear
}
private var finalContainerOrientation: NSUserInterfaceLayoutOrientation {