From 7bf58ed61f1883a37e13000d8ca63af54486f140 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Wed, 8 Jun 2022 00:12:13 +0800 Subject: [PATCH] ctlCandidate // Fix CGContext error brought by vChewing 1.2.x. --- Source/UI/CandidateUI/ctlCandidateUniversal.swift | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Source/UI/CandidateUI/ctlCandidateUniversal.swift b/Source/UI/CandidateUI/ctlCandidateUniversal.swift index bd0285a5..568f5f03 100644 --- a/Source/UI/CandidateUI/ctlCandidateUniversal.swift +++ b/Source/UI/CandidateUI/ctlCandidateUniversal.swift @@ -409,8 +409,6 @@ public class ctlCandidateUniversal: ctlCandidate { let buttonAttribute: [NSAttributedString.Key: Any] = [.font: NSFont.systemFont(ofSize: 9.0)] nextPageButton = .init(frame: contentRect) - NSColor.controlBackgroundColor.setFill() - NSBezierPath.fill(nextPageButton.bounds) nextPageButton.wantsLayer = true nextPageButton.layer?.masksToBounds = true nextPageButton.layer?.borderColor = NSColor.clear.cgColor @@ -422,8 +420,6 @@ public class ctlCandidateUniversal: ctlCandidate { string: " ", attributes: buttonAttribute ) // Next Page Arrow prevPageButton = .init(frame: contentRect) - NSColor.controlBackgroundColor.setFill() - NSBezierPath.fill(prevPageButton.bounds) prevPageButton.wantsLayer = true prevPageButton.layer?.masksToBounds = true prevPageButton.layer?.borderColor = NSColor.clear.cgColor @@ -441,8 +437,6 @@ public class ctlCandidateUniversal: ctlCandidate { contentRect = NSRect(x: 128.0, y: 128.0, width: 48.0, height: 20.0) pageCounterLabel = .init(frame: contentRect) - NSColor.controlBackgroundColor.setFill() - NSBezierPath.fill(pageCounterLabel.bounds) pageCounterLabel.isEditable = false pageCounterLabel.isSelectable = false pageCounterLabel.isBezeled = false