Skip to content

Commit

Permalink
avoid .toolbar, which is macOS 14+
Browse files Browse the repository at this point in the history
- doesn't change the look because we set isBordered to false.
  • Loading branch information
shuang886 authored and lukhnos committed Nov 23, 2023
1 parent d34b900 commit 7d991f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 7d991f3

Please sign in to comment.