diff --git a/Dozer/DozerIcons.swift b/Dozer/DozerIcons.swift index b7f371d..9a6e37e 100755 --- a/Dozer/DozerIcons.swift +++ b/Dozer/DozerIcons.swift @@ -85,7 +85,7 @@ public final class DozerIcons { showAll() } } - + public var iconFontSize: Int = Defaults[.iconSize] { didSet { Defaults[.iconSize] = self.iconFontSize @@ -94,7 +94,7 @@ public final class DozerIcons { } } } - + public var buttonPadding: CGFloat = Defaults[.buttonPadding] { didSet { Defaults[.buttonPadding] = self.buttonPadding diff --git a/Dozer/StatusIconClasses/HelperStatusIcon.swift b/Dozer/StatusIconClasses/HelperStatusIcon.swift index bbbe822..55c4db1 100644 --- a/Dozer/StatusIconClasses/HelperStatusIcon.swift +++ b/Dozer/StatusIconClasses/HelperStatusIcon.swift @@ -7,7 +7,7 @@ import Defaults private struct StatusIconLength { static var show: CGFloat { - return Defaults[.buttonPadding] + Defaults[.buttonPadding] } static let hide: CGFloat = 10_000 } @@ -59,7 +59,7 @@ class HelperstatusIcon { statusIconButton.image = Icons().helperstatusIcon statusIconButton.image!.isTemplate = true } - + func setSize() { if statusIcon.length != StatusIconLength.hide { statusIcon.length = StatusIconLength.show diff --git a/Dozer/ViewControllers/GeneralVC.swift b/Dozer/ViewControllers/GeneralVC.swift index 856cdfc..aa558ae 100644 --- a/Dozer/ViewControllers/GeneralVC.swift +++ b/Dozer/ViewControllers/GeneralVC.swift @@ -73,24 +73,24 @@ final class General: NSViewController, PreferencePane { @IBAction private func hideStatusBarIconsAfterDelayClicked(_ sender: NSButton) { DozerIcons.shared.hideStatusBarIconsAfterDelay = HideStatusBarIconsAfterDelayCheckbox.isChecked } - - @IBAction func hideStatusBarIconsSecondsUpdated(_ sender: NSPopUpButton) { + + @IBAction private func hideStatusBarIconsSecondsUpdated(_ sender: NSPopUpButton) { Defaults[.hideAfterDelay] = TimeInterval(HideStatusBarIconsSecondsPopUpButton.selectedTag()) DozerIcons.shared.resetTimer() } - + @IBAction private func hideBothDozerIconsClicked(_ sender: NSButton) { DozerIcons.shared.hideBothDozerIcons = HideBothDozerIconsCheckbox.isChecked } - @IBAction func fontSizeChanged(_ sender: NSPopUpButton) { + @IBAction private func fontSizeChanged(_ sender: NSPopUpButton) { DozerIcons.shared.iconFontSize = FontSizePopUpButton.selectedTag() } - - @IBAction func buttonPaddingChanged(_ sender: NSPopUpButton) { + + @IBAction private func buttonPaddingChanged(_ sender: NSPopUpButton) { DozerIcons.shared.buttonPadding = CGFloat(ButtonPaddingPopUpButton.selectedTag()) } - + @IBAction private func enableRemoveDozerIconClicked(_ sender: NSButton) { DozerIcons.shared.enableRemoveDozerIcon = EnableRemoveDozerIconCheckbox.isChecked }