History

style: tighten provider switcher padding

Peter Steinberger committed 10 months ago

Commit 147aafe1 parent bb791e51 file · +3 −3Browse files

Unified · Split

Sources/CodexBar/StatusItemController+Menu.swift+3−3
@@ -754,8 +754,8 @@ private final class ProviderSwitcherView: NSView { · 753 unmodified lines
754 }754 }
755 }755 }
756 756
757 let outerPadding: CGFloat = 6757 let outerPadding: CGFloat = 3
758 let minimumGap: CGFloat = 4758 let minimumGap: CGFloat = 2
759 759
760 if self.buttons.count == 2 {760 if self.buttons.count == 2 {
761 let left = self.buttons[0]761 let left = self.buttons[0]
@@ -879,7 +879,7 @@ private final class ProviderSwitcherView: NSView { · 117 unmodified lines
879}879}
880 880
881private final class PaddedToggleButton: NSButton {881private final class PaddedToggleButton: NSButton {
882 private let contentPadding = NSEdgeInsets(top: 3, left: 8, bottom: 3, right: 8)882 private let contentPadding = NSEdgeInsets(top: 2, left: 5, bottom: 2, right: 5)
883 883
884 override var intrinsicContentSize: NSSize {884 override var intrinsicContentSize: NSSize {
885 let size = super.intrinsicContentSize885 let size = super.intrinsicContentSize

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t