From 63ef41bc4afca791a0518e94fd076446025862d3 Mon Sep 17 00:00:00 2001 From: Steven Huang <140762048+shuang886@users.noreply.github.com> Date: Thu, 23 Nov 2023 07:09:28 -0800 Subject: [PATCH] avoid .toolbar, which is macOS 14+ - doesn't change the look because we set isBordered to false. --- .../Sources/CandidateUI/HorizontalCandidateController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Packages/CandidateUI/Sources/CandidateUI/HorizontalCandidateController.swift b/Packages/CandidateUI/Sources/CandidateUI/HorizontalCandidateController.swift index b7b0b03d..7538b636 100644 --- a/Packages/CandidateUI/Sources/CandidateUI/HorizontalCandidateController.swift +++ b/Packages/CandidateUI/Sources/CandidateUI/HorizontalCandidateController.swift @@ -243,13 +243,13 @@ public class HorizontalCandidateController: CandidateController { contentRect.size = NSSize(width: 36.0, height: 20.0) nextPageButton = NSButton(frame: contentRect) nextPageButton.setButtonType(.momentaryLight) - nextPageButton.bezelStyle = .toolbar + nextPageButton.bezelStyle = .smallSquare nextPageButton.isBordered = false nextPageButton.attributedTitle = "»".withColor(.controlTextColor) prevPageButton = NSButton(frame: contentRect) prevPageButton.setButtonType(.momentaryLight) - prevPageButton.bezelStyle = .toolbar + prevPageButton.bezelStyle = .smallSquare prevPageButton.isBordered = false prevPageButton.attributedTitle = "«".withColor(.controlTextColor)