Skip to content
This repository was archived by the owner on Aug 5, 2024. It is now read-only.

Commit 549a5ec

Browse files
committed
Apply SwiftFormat
1 parent 2c1726a commit 549a5ec

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Nocturnal/Application/Menu/MenuController.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class MenuController: NSMenu, NSMenuDelegate {
7474
disableCustomMenuItem.isEnabled = true
7575
disableHourMenuItem.isEnabled = false
7676
}
77-
77+
7878
setTimerText(StateManager.isTimerEnabled)
7979

8080
// TouchBar
@@ -84,7 +84,7 @@ class MenuController: NSMenu, NSMenuDelegate {
8484
func setStatusMenuIcon() {
8585
if let icon = NSImage(named: NSImage.Name("StatusBarButtonImage")) {
8686
icon.isTemplate = true
87-
if let button = self.statusItem.button {
87+
if let button = statusItem.button {
8888
DispatchQueue.main.async { button.image = icon }
8989
}
9090
}
@@ -96,10 +96,10 @@ class MenuController: NSMenu, NSMenuDelegate {
9696
dimnessSliderMenuItem = item(withTitle: "Dimness Slider")
9797
dimnessSliderMenuItem.view = dimnessSliderView
9898
}
99-
99+
100100
func setupNightShiftMenuItems() {
101101
nightShiftLabel.attributedTitle = NSAttributedString(string: "Night Shift:", attributes: [NSAttributedString.Key.font: NSFont.systemFont(ofSize: 14), NSAttributedString.Key.foregroundColor: Utils.getGrayscaleColorForAppearance()])
102-
timerMenuItem.isEnabled = false
102+
timerMenuItem.isEnabled = false
103103
nightShiftSliderView.setup()
104104
nightShiftSliderMenuItem = item(withTitle: "Night Shift Slider")
105105
nightShiftSliderMenuItem.view = nightShiftSliderView

Nocturnal/Application/Preferences/AboutViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ class AboutViewController: NSViewController {
2020
override func viewWillDisappear() {
2121
StateManager.isAboutWindowOpen = false
2222
}
23-
24-
@IBAction func donateButtonClicked(_ sender: NSButton) {
23+
24+
@IBAction func donateButtonClicked(_: NSButton) {
2525
Utils.openUrl(url: "https://www.paypal.me/joshuajon")
2626
}
2727
}

Nocturnal/Application/TouchBar/TouchBar.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class TouchBar {
1818
NSTouchBar.presentSystemModalFunctionBar(blankTouchBar, placement: 1, systemTrayItemIdentifier: .nocturnalControlStripItem)
1919
}
2020
}
21-
21+
2222
static func showTouchbar() {
2323
if #available(OSX 10.14, *) {
2424
NSTouchBar.minimizeSystemModalTouchBar(blankTouchBar)

0 commit comments

Comments
 (0)