diff --git a/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/VwrCandidateTDK_Appkit.swift b/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/VwrCandidateTDK_Appkit.swift index 6cc99ce3..d1ae1006 100644 --- a/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/VwrCandidateTDK_Appkit.swift +++ b/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/VwrCandidateTDK_Appkit.swift @@ -75,7 +75,9 @@ public extension VwrCandidateTDKAppKit { let allCells = thePool.candidateLines[thePool.lineRangeForCurrentPage].flatMap { $0 } allCells.forEach { currentCell in if currentCell.isHighlighted, !cellHighlightedDrawn { - currentCell.themeColorCocoa.setFill() + let alphaRatio = NSApplication.isDarkMode ? 0.75 : 1 + let themeColor = controller?.delegate?.clientAccentColor?.withAlphaComponent(alphaRatio) + (themeColor ?? currentCell.themeColorCocoa).setFill() NSBezierPath(roundedRect: sizesCalculated.highlightedCandidate, xRadius: cellRadius, yRadius: cellRadius).fill() cellHighlightedDrawn = true }