Skip to content

Commit

Permalink
better native color scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
LEOYoon-Tsaw committed May 16, 2024
1 parent e92c110 commit 2fc1334
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sources/SquirrelTheme.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 2fc1334

Please sign in to comment.