diff --git a/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/CandidatePool_CocoaImpl.swift b/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/CandidatePool_CocoaImpl.swift index 1cc15734..e767c42b 100644 --- a/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/CandidatePool_CocoaImpl.swift +++ b/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/CandidatePool_CocoaImpl.swift @@ -41,7 +41,7 @@ extension CandidatePool { ) if lineID != currentLineNumber { cellString.addAttribute( - .foregroundColor, value: NSColor.controlTextColor, + .foregroundColor, value: NSColor.gray, range: .init(location: 0, length: cellString.string.utf16.count) ) } diff --git a/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/VwrCandidateTDK_Cocoa.swift b/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/VwrCandidateTDK_Cocoa.swift index ceace224..fa0b9a97 100644 --- a/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/VwrCandidateTDK_Cocoa.swift +++ b/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/VwrCandidateTDK_Cocoa.swift @@ -238,6 +238,7 @@ private extension VwrCandidateTDKCocoa { vwrCurrentLine.layer?.backgroundColor = lineBg.cgColor vwrCurrentLine.layer?.cornerRadius = 6 } + vwrCurrentLine.alphaValue = isCurrentLine ? 1 : 0.85 lineDimension.width = max(lineSize.width, lineDimension.width) switch thePool.layout { case .horizontal: lineDimension.height = max(lineSize.height, lineDimension.height) diff --git a/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/VwrCandidateTDK_SwiftUI.swift b/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/VwrCandidateTDK_SwiftUI.swift index 88922dc2..33ce1fc9 100644 --- a/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/VwrCandidateTDK_SwiftUI.swift +++ b/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/VwrCandidateTDK_SwiftUI.swift @@ -66,7 +66,7 @@ private extension VwrCandidateTDK { ForEach(Array(thePool.candidateLines[rowIndex]), id: \.self) { currentCandidate in drawCandidate(currentCandidate).fixedSize() } - .opacity(rowIndex == thePool.currentLineNumber ? 1 : 0.95) + .opacity(rowIndex == thePool.currentLineNumber ? 1 : 0.85) } } .id(rowIndex) @@ -100,7 +100,7 @@ private extension VwrCandidateTDK { ForEach(Array(thePool.candidateLines[columnIndex]), id: \.self) { currentCandidate in drawCandidate(currentCandidate) } - .opacity(columnIndex == thePool.currentLineNumber ? 1 : 0.95) + .opacity(columnIndex == thePool.currentLineNumber ? 1 : 0.85) if thePool.candidateLines[columnIndex].count < thePool.maxLineCapacity { ForEach(0 ..< thePool.dummyCellsRequiredForCurrentLine, id: \.self) { _ in drawCandidate(thePool.blankCell)