From 2fc133454797c5be69e8002f2f51c10ca8644bfc Mon Sep 17 00:00:00 2001 From: LEO Yoon-Tsaw Date: Wed, 15 May 2024 22:35:37 -0400 Subject: [PATCH] better native color scheme --- sources/SquirrelTheme.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/SquirrelTheme.swift b/sources/SquirrelTheme.swift index d8883b390..51c0b64b3 100644 --- a/sources/SquirrelTheme.swift +++ b/sources/SquirrelTheme.swift @@ -40,8 +40,8 @@ final class SquirrelTheme { private var textColor: NSColor = .disabledControlTextColor private var highlightedTextColor: NSColor = .controlTextColor - private var candidateTextColor: NSColor = .controlTextColor - private var highlightedCandidateTextColor: NSColor = .selectedControlTextColor + private var candidateTextColor: NSColor = .secondaryLabelColor + private var highlightedCandidateTextColor: NSColor = .labelColor private var candidateLabelColor: NSColor? private var highlightedCandidateLabelColor: NSColor? private var commentTextColor: NSColor? = .disabledControlTextColor @@ -293,7 +293,7 @@ private extension SquirrelTheme { func blendColor(foregroundColor: NSColor, backgroundColor: NSColor?) -> NSColor { let foregroundColor = foregroundColor.usingColorSpace(NSColorSpace.deviceRGB)! - let backgroundColor = (backgroundColor ?? NSColor.darkGray).usingColorSpace(NSColorSpace.deviceRGB)! + let backgroundColor = (backgroundColor ?? NSColor.gray).usingColorSpace(NSColorSpace.deviceRGB)! func blend(_ a: CGFloat, _ b: CGFloat) -> CGFloat { return (a * 2 + b) / 3 }