diff --git a/Packages/vChewing_PopupCompositionBuffer/Sources/PopupCompositionBuffer/PopupCompositionBuffer.swift b/Packages/vChewing_PopupCompositionBuffer/Sources/PopupCompositionBuffer/PopupCompositionBuffer.swift index 44f46e618..d93ad5e37 100644 --- a/Packages/vChewing_PopupCompositionBuffer/Sources/PopupCompositionBuffer/PopupCompositionBuffer.swift +++ b/Packages/vChewing_PopupCompositionBuffer/Sources/PopupCompositionBuffer/PopupCompositionBuffer.swift @@ -157,10 +157,15 @@ public class PopupCompositionBuffer: NSWindowController { ) var cursorAttributes: [NSAttributedString.Key: Any] { + let shadow = NSShadow() + shadow.shadowBlurRadius = 4 + shadow.shadowOffset.height = 1 + shadow.shadowColor = .black var result: [NSAttributedString.Key: Any] = [ .kern: -18, .font: bufferFont(), .foregroundColor: textColor, + .shadow: shadow, ] if isTypingDirectionVertical { result[.paragraphStyle] = verticalAttributes[.paragraphStyle]