[
  {
    "path": ".gitignore",
    "content": "build/\n.build/\nReleases/\nDozer.xcodeproj/\nCredentials/\nCarthage/\n\n# Fastlane\nfastlane/\nfastlaneLegacy/\nGemfile\nGemfile.lock\n\n# Swiftgen\nDozer/Other/Generated/\n"
  },
  {
    "path": ".swiftlint.yml",
    "content": "whitelist_rules:\n  - anyobject_protocol\n  - array_init\n  - attributes\n  - block_based_kvo\n  - class_delegate_protocol\n  - closing_brace\n  - closure_end_indentation\n  - closure_parameter_position\n  - closure_spacing\n  - collection_alignment\n  - colon\n  - comma\n  - compiler_protocol_init\n  - conditional_returns_on_newline\n  - contains_over_first_not_nil\n  - control_statement\n  - deployment_target\n  - discarded_notification_center_observer\n  - discouraged_direct_init\n  - discouraged_object_literal\n  - discouraged_optional_boolean\n  - discouraged_optional_collection\n  - duplicate_imports\n  - dynamic_inline\n  - empty_count\n  - empty_enum_arguments\n  - empty_parameters\n  - empty_parentheses_with_trailing_closure\n  - empty_string\n  - empty_xctest_method\n  - explicit_init\n  - fallthrough\n  - fatal_error_message\n  - first_where\n  - for_where\n  - generic_type_name\n  - identical_operands\n  - identifier_name\n  - implicit_getter\n  - implicit_return\n  - inert_defer\n  - is_disjoint\n  - joined_default_parameter\n  - last_where\n  - leading_whitespace\n  - legacy_cggeometry_functions\n  - legacy_constant\n  - legacy_constructor\n  - legacy_hashing\n  - legacy_nsgeometry_functions\n  - legacy_random\n  - literal_expression_end_indentation\n  - lower_acl_than_parent\n  - mark\n  - modifier_order\n  - multiline_arguments\n  - multiline_function_chains\n  - multiline_literal_brackets\n  - multiline_parameters\n  - multiline_parameters_brackets\n  - multiple_closures_with_trailing_closure\n  - nimble_operator\n  - no_extension_access_modifier\n  - no_fallthrough_only\n  - notification_center_detachment\n  - number_separator\n  - object_literal\n  - opening_brace\n  - operator_usage_whitespace\n  - operator_whitespace\n  - overridden_super_call\n  - pattern_matching_keywords\n  - private_action\n  - private_outlet\n  - private_unit_test\n  - prohibited_super_call\n  - protocol_property_accessors_order\n  - redundant_discardable_let\n  - redundant_nil_coalescing\n  - redundant_objc_attribute\n  - redundant_optional_initialization\n  - redundant_set_access_control\n  - redundant_string_enum_value\n  - redundant_type_annotation\n  - redundant_void_return\n  - required_enum_case\n  - return_arrow_whitespace\n  - shorthand_operator\n  - sorted_first_last\n  - statement_position\n  - static_operator\n  - strong_iboutlet\n  - superfluous_disable_command\n  - switch_case_alignment\n  - switch_case_on_newline\n  - syntactic_sugar\n  - todo\n  - toggle_bool\n  - trailing_closure\n  - trailing_comma\n  - trailing_newline\n  - trailing_semicolon\n  - trailing_whitespace\n  - type_name\n  - unavailable_function\n  - unneeded_break_in_switch\n  - unneeded_parentheses_in_closure_argument\n  - untyped_error_in_catch\n  - unused_closure_parameter\n  - unused_control_flow_label\n  - unused_enumerated\n  - unused_optional_binding\n  - unused_setter_value\n  - valid_ibinspectable\n  - vertical_parameter_alignment\n  - vertical_parameter_alignment_on_call\n  - vertical_whitespace_closing_braces\n  - vertical_whitespace_opening_braces\n  - void_return\n  - weak_computed_property\n  - weak_delegate\n  - xct_specific_matcher\n  - xctfail_message\n  - yoda_condition\nanalyzer_rules:\n  - unused_import\n  - unused_private_declaration\nforce_cast: warning\nforce_unwrapping: warning\nnumber_separator:\n  minimum_length: 5\nobject_literal:\n  image_literal: false\ndiscouraged_object_literal:\n  color_literal: false\nidentifier_name:\n  max_length:\n    warning: 100\n    error: 100\n  min_length:\n    warning: 2\n    error: 2\n  validates_start_with_lowercase: false\n  allowed_symbols:\n    - '_'\n  excluded:\n    - 'x'\n    - 'y'\n    - 'a'\n    - 'b'\n    - 'x1'\n    - 'x2'\n    - 'y1'\n    - 'y2'\nincluded:\n    - Dozer\n"
  },
  {
    "path": "Brewfile",
    "content": "brew \"swiftformat\"\nbrew \"swiftgen\"\nbrew \"swiftlint\"\nbrew \"xcodegen\"\nbrew \"carthage\"\n"
  },
  {
    "path": "Brewfile.lock.json",
    "content": "{\n  \"entries\": {\n    \"brew\": {\n      \"swiftformat\": {\n        \"version\": \"0.44.16\",\n        \"bottle\": {\n          \"cellar\": \":any_skip_relocation\",\n          \"prefix\": \"/usr/local\",\n          \"files\": {\n            \"catalina\": {\n              \"url\": \"https://homebrew.bintray.com/bottles/swiftformat-0.44.16.catalina.bottle.tar.gz\",\n              \"sha256\": \"e03e40dbe228ee7136cc2dd57079b589a6c531f4f2a52fce8a0ad7aaa2e2a935\"\n            },\n            \"mojave\": {\n              \"url\": \"https://homebrew.bintray.com/bottles/swiftformat-0.44.16.mojave.bottle.tar.gz\",\n              \"sha256\": \"9b866de2516e8f68b1ad764f996f38cba31b2d2fc345ba683bdd1867e6a44091\"\n            },\n            \"high_sierra\": {\n              \"url\": \"https://homebrew.bintray.com/bottles/swiftformat-0.44.16.high_sierra.bottle.tar.gz\",\n              \"sha256\": \"eb111096afada9821c4cf1489706b5daf599670d8651719955998f763c6b9cdb\"\n            }\n          }\n        }\n      },\n      \"swiftgen\": {\n        \"version\": \"6.2.1\",\n        \"bottle\": {\n          \"cellar\": \":any\",\n          \"prefix\": \"/usr/local\",\n          \"files\": {\n            \"catalina\": {\n              \"url\": \"https://homebrew.bintray.com/bottles/swiftgen-6.2.1.catalina.bottle.tar.gz\",\n              \"sha256\": \"0fde7ff65be044c1685ab5aa84514e45c594cbc8bad028b5ac8f2f6218cfd626\"\n            }\n          }\n        }\n      },\n      \"swiftlint\": {\n        \"version\": \"0.39.2\",\n        \"bottle\": {\n          \"cellar\": \":any_skip_relocation\",\n          \"prefix\": \"/usr/local\",\n          \"files\": {\n            \"catalina\": {\n              \"url\": \"https://homebrew.bintray.com/bottles/swiftlint-0.39.2.catalina.bottle.tar.gz\",\n              \"sha256\": \"32f9e5e37190e81856eff49c2118c04d1995110b509f0a4997e211c9f939919e\"\n            },\n            \"mojave\": {\n              \"url\": \"https://homebrew.bintray.com/bottles/swiftlint-0.39.2.mojave.bottle.tar.gz\",\n              \"sha256\": \"c4fc10277d46c406277491003e5d5bbdfe526890c39b30eb924749696ed56d40\"\n            }\n          }\n        }\n      },\n      \"xcodegen\": {\n        \"version\": \"2.16.0\",\n        \"bottle\": {\n          \"cellar\": \":any_skip_relocation\",\n          \"prefix\": \"/usr/local\",\n          \"files\": {\n            \"catalina\": {\n              \"url\": \"https://homebrew.bintray.com/bottles/xcodegen-2.16.0.catalina.bottle.tar.gz\",\n              \"sha256\": \"fc8f03f0f3968c6f913725629bdfa34a24a539a6868afdb1112b8f76cdbf5a55\"\n            },\n            \"mojave\": {\n              \"url\": \"https://homebrew.bintray.com/bottles/xcodegen-2.16.0.mojave.bottle.tar.gz\",\n              \"sha256\": \"a8eea29cb064ef817a1aae173b102eb689a263fc4039987a4592e9f15c4b1d85\"\n            }\n          }\n        }\n      },\n      \"carthage\": {\n        \"version\": \"0.35.0\",\n        \"bottle\": {\n          \"cellar\": \":any_skip_relocation\",\n          \"prefix\": \"/usr/local\",\n          \"files\": {\n            \"catalina\": {\n              \"url\": \"https://homebrew.bintray.com/bottles/carthage-0.35.0.catalina.bottle.tar.gz\",\n              \"sha256\": \"fdaacafff1566fa7b1e42e68e108da69aa7578dc82f4736272dca10283c9cba2\"\n            },\n            \"mojave\": {\n              \"url\": \"https://homebrew.bintray.com/bottles/carthage-0.35.0.mojave.bottle.tar.gz\",\n              \"sha256\": \"1da29ca0b1d8e79bec5e548f5ab2433890ebc3fc9007f5fdb70d9e3be281dbb7\"\n            },\n            \"high_sierra\": {\n              \"url\": \"https://homebrew.bintray.com/bottles/carthage-0.35.0.high_sierra.bottle.tar.gz\",\n              \"sha256\": \"130fcb9bc06ef8e7f1c5ac9af0d155bd347db039b2cf80fa0fef764b3627ffbf\"\n            }\n          }\n        }\n      }\n    }\n  },\n  \"system\": {\n    \"macos\": {\n      \"catalina\": {\n        \"HOMEBREW_VERSION\": \"2.4.4-57-g6d2c395\",\n        \"HOMEBREW_PREFIX\": \"/usr/local\",\n        \"Homebrew/homebrew-core\": \"a4ba652e5d0b5380df4f2edecc2f4d15cd15fc48\",\n        \"CLT\": \"1103.0.32.29\",\n        \"Xcode\": \"11.5\",\n        \"macOS\": \"10.15.5\"\n      }\n    }\n  }\n}\n"
  },
  {
    "path": "CHANGELOG.md",
    "content": "# Changelog\n\n## Version 4.2.0\nNew features:\n* Configure amount of seconds to hide the icons after #104. @blakedgordon\n* Resize icons and padding capability added #101. @blakedgordon\n\nFixed:\n* Fix both dozer icons from being hidden #105. @blakedgordon\n\nThank you @blakedgordon for the contributions🙌\n\n## Version 4.1.0\nNew features:\n* Hide status bar icons at launch #78. @aonez\n\nFixed:\n* Reduce CPU usage when \"Hide status bar icons after 10 seconds\" is checked #78. @aonez\n\nThank you @aonez for the contributions🙌\n\n## Version 4\nNew features:\n* ”Remove”-icon. Additional icon to hide/show icons with `option+click`\n* Auto-hide status bar icons #22\n* ”No Icon”-mode. Hide/show only using keyboard shortcut\n\nOther:\n* Improved UI in preferences\n"
  },
  {
    "path": "CONTRIBUTING.md",
    "content": "# Contributing to Dozer\n\nThere are various ways to contribute to Dozer, and all are welcome and appreciated!\n\n- [Bug reports](#bug-reports)\n- [Feature requests](#feature-requests)\n- [Design](#design)\n- [Code](#code)\n    - [Getting started](#getting-started)\n    - [Submitting your pull request](#submitting-your-pull-request)\n\n## Bug reports\nOpen issues about problems you may be encountering. When doing so please mention the version you're using.\n\n## Feature requests\nIf you have a good idea for a feature or enhancement open an issue.\n\n## Design\nRefresh the Dozer icons or logo. [Design resources for logo and status bar icon](https://www.figma.com/file/g5MhiwxR1YFg5vti0tPANa/Dozer).\n\n## Code\nYou can submit your own code. This can be bug fixes or new features. Please ask me (@Mortennn) before implementing a new feature. Check out [Issues](https://github.com/Mortennn/Dozer/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc).\n\n### Getting started\nMake sure you have at least Xcode 10 installed.\n\nRun the following command:\n```shell\ngit clone https://github.com/mortennn/dozer &&\ncd dozer &&\nmake build\n```\nDone! The project should open automatically in Xcode.\n\n### Submitting your pull request\nPlease give a small summary of what has changed. Also add any github issues links (`Fixes #100`).\nOnce your pull request is created, please add a changelog entry to the CHANGELOG.md along with the PR number."
  },
  {
    "path": "Cartfile",
    "content": "github \"sindresorhus/LaunchAtLogin\"\ngithub \"sindresorhus/Defaults\"\ngithub \"sindresorhus/Preferences\"\ngithub \"shpakovski/MASShortcut\"\ngithub \"sparkle-project/Sparkle\""
  },
  {
    "path": "Cartfile.resolved",
    "content": "github \"shpakovski/MASShortcut\" \"2.4.0\"\ngithub \"sindresorhus/Defaults\" \"v4.2.2\"\ngithub \"sindresorhus/LaunchAtLogin\" \"v4.1.0\"\ngithub \"sindresorhus/Preferences\" \"v2.2.1\"\ngithub \"sparkle-project/Sparkle\" \"1.26.0\"\n"
  },
  {
    "path": "Configs/Debug.xcconfig",
    "content": "SWIFT_COMPILATION_MODE=Incremental\nSWIFT_OPTIMIZATION_LEVEL=-Onone\nDEBUG_INFORMATION_FORMAT=dwarf\nENABLE_TESTABILITY=YES\n"
  },
  {
    "path": "Configs/Release.xcconfig",
    "content": "SWIFT_COMPILATION_MODE=wholemodule\nSWIFT_OPTIMIZATION_LEVEL=-O\n"
  },
  {
    "path": "Dozer/AppDelegate.swift",
    "content": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/. */\n\nimport Cocoa\nimport MASShortcut\nimport Sparkle\nimport Defaults\nimport Preferences\n\n\nfinal class AppDelegate: NSObject, NSApplicationDelegate {\n    func applicationDidFinishLaunching(_: Notification) {\n        MASShortcutBinder.shared()?.bindShortcut(withDefaultsKey: UserDefaultKeys.Shortcuts.ToggleMenuItems) { () in\n            DozerIcons.shared.toggle()\n        }\n\n        // Initalize Dozer Icons\n        _ = DozerIcons.shared\n        \n        // If enabled hide menu bar icons at launch\n        DozerIcons.shared.hideAtLaunch()\n\n        _ = DozerIcons.toggleDockIcon(showIcon: false)\n    }\n\n    // Show all Dozer icons when opening Dozer from Finder etc.\n    func applicationOpenUntitledFile(_ sender: NSApplication) -> Bool {\n        DozerIcons.shared.showAll()\n        return true\n    }\n\n    lazy var preferences: [PreferencePane] = [\n        Dozer(),\n        General()\n    ]\n\n    lazy var preferencesWindowController = PreferencesWindowController(\n        preferencePanes: preferences,\n        style: .toolbarItems,\n        animated: true,\n        hidesToolbarForSingleItem: true\n    )\n}\n"
  },
  {
    "path": "Dozer/Constants.swift",
    "content": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/. */\n\nimport Cocoa\nimport Preferences\nimport Defaults\n\nextension Defaults.Keys {\n    static let hideOnLogin: Defaults.Key<Bool> = Key<Bool>(\"hideOnLogin\", default: false)\n    static let hideAtLaunchEnabled: Defaults.Key<Bool> = Key<Bool>(\"hideAtLaunchEnabled\", default: false)\n    static let hideAfterDelayEnabled: Defaults.Key<Bool> = Key<Bool>(\"hideAfterDelayEnabled\", default: false)\n    static let hideAfterDelay: Defaults.Key<TimeInterval> = Key<TimeInterval>(\"hideAfterDelay\", default: 10)\n    static let noIconMode: Defaults.Key<Bool> = Key<Bool>(\"noIconMode\", default: false)\n    static let removeDozerIconEnabled: Defaults.Key<Bool> = Key<Bool>(\"removeStatusIconEnabled\", default: false)\n    static let showIconAndMenuEnabled: Defaults.Key<Bool> = Key<Bool>(\"showIconAndMenuEnabled\", default: false)\n    static let iconSize: Defaults.Key<Int> = Key<Int>(\"fontSize\", default: 10)\n    static let buttonPadding: Defaults.Key<CGFloat> = Key<CGFloat>(\"buttonPadding\", default: 25)\n    static let animationEnabled: Defaults.Key<Bool> = Key<Bool>(\"animationEnabeld\", default: false)\n    static let isShortcutSet: Defaults.Key<Bool> = Key<Bool>(\"isShortcutSet\", default: false)\n}\n\nstruct UserDefaultKeys {\n    struct Shortcuts {\n        static let ToggleMenuItems: String = \"toggleMenuItems\"\n    }\n}\n\nextension NSStoryboard.Name {\n    static let preferences: NSStoryboard.Name = NSStoryboard.Name(\"Preferences\")\n}\n\nextension Preferences.PaneIdentifier {\n    static let dozer = Self(\"dozer\")\n    static let general = Self(\"general\")\n}\n\nstruct AppInfo {\n    static let bundleIdentifier: String = Bundle.main.bundleIdentifier!\n    static var releaseVersionNumber: String? {\n        Bundle.main.infoDictionary?[\"CFBundleShortVersionString\"] as? String\n    }\n    static var buildVersionNumber: String? {\n        Bundle.main.infoDictionary?[\"CFBundleVersion\"] as? String\n    }\n}\n\nenum StatusIconAction {\n    case show\n    case hide\n    case toggle\n}\n\nenum StatusIconType {\n    case normal\n    case remove\n}\n\nenum DozerIcon {\n    case remove\n    case normalLeft\n    case normalRight\n}\n"
  },
  {
    "path": "Dozer/DozerIcons.swift",
    "content": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/. */\n\nimport Cocoa\nimport Defaults\n\npublic final class DozerIcons {\n    static var shared = DozerIcons()\n    private var dozerIcons: [HelperstatusIcon] = []\n    private var timerToCheckUserInteraction = Timer()\n    private var timerToHideDozerIcons = Timer()\n    private var previousApp = NSRunningApplication()\n\n    private init() {\n        dozerIcons.append(NormalStatusIcon())\n\n        if !hideBothDozerIcons  || !Defaults[.isShortcutSet] {\n            dozerIcons.append(NormalStatusIcon())\n        }\n\n        if enableRemoveDozerIcon {\n            dozerIcons.append(RemoveStatusIcon())\n        }\n\n        if hideStatusBarIconsAfterDelay {\n            startTimer()\n        }\n\n        Defaults.observe(.isShortcutSet) { change in\n            self.triggerHideBothDozerIcons()\n        }\n        .tieToLifetime(of: self)\n    }\n\n    private func startUserInteractionTimer() {\n        guard Defaults[.hideAfterDelayEnabled] else {\n            stopUserInteractionTimer()\n            return\n        }\n        timerToCheckUserInteraction = Timer.scheduledTimer(withTimeInterval: 0.5, repeats: true) { _ in\n            if self.isUserInteractingWithStatusBar() {\n                self.resetTimer()\n            }\n        }\n    }\n\n    private func stopUserInteractionTimer() {\n        timerToCheckUserInteraction.invalidate()\n    }\n\n    // MARK: Observe changes to settings\n    public var hideStatusBarIconsAtLaunch: Bool = Defaults[.hideAtLaunchEnabled] {\n        didSet {\n            Defaults[.hideAtLaunchEnabled] = self.hideStatusBarIconsAtLaunch\n        }\n    }\n\n    public var hideStatusBarIconsAfterDelay: Bool = Defaults[.hideAfterDelayEnabled] {\n        didSet {\n            Defaults[.hideAfterDelayEnabled] = self.hideStatusBarIconsAfterDelay\n            if hideStatusBarIconsAfterDelay {\n                startTimer()\n            } else {\n                stopTimer()\n            }\n        }\n    }\n\n    public var hideBothDozerIcons: Bool = Defaults[.noIconMode] {\n        didSet {\n            Defaults[.noIconMode] = self.hideBothDozerIcons\n            triggerHideBothDozerIcons()\n        }\n    }\n\n    public func triggerHideBothDozerIcons() {\n        let normalStatusIconsCount = dozerIcons.filter { $0.type == .normal}.count\n        if hideBothDozerIcons && Defaults[.isShortcutSet] {\n            if normalStatusIconsCount == 2 {\n                let rightDozerIconXPos = get(dozerIcon: .normalRight).xPositionOnScreen\n                dozerIcons.removeAll { $0.xPositionOnScreen == rightDozerIconXPos }\n            }\n        } else if !hideBothDozerIcons && Defaults[.isShortcutSet] || !Defaults[.isShortcutSet] {\n            if normalStatusIconsCount == 1 {\n                show()\n                dozerIcons.append(NormalStatusIcon())\n            }\n        }\n        show()\n    }\n\n    public var enableRemoveDozerIcon: Bool = Defaults[.removeDozerIconEnabled] {\n        didSet {\n            Defaults[.removeDozerIconEnabled] = self.enableRemoveDozerIcon\n            if enableRemoveDozerIcon {\n                dozerIcons.append(RemoveStatusIcon())\n            } else {\n                dozerIcons.removeAll { $0.type == .remove }\n            }\n            showAll()\n        }\n    }\n\n    public var enableIconAndMenu: Bool = Defaults[.showIconAndMenuEnabled] {\n        didSet {\n            Defaults[.showIconAndMenuEnabled] = self.enableIconAndMenu\n            if self.enableIconAndMenu == false {\n                _ = DozerIcons.toggleDockIcon(showIcon: false)\n                appDelegate.preferencesWindowController.show(preferencePane: .general)\n            }\n        }\n    }\n\n    public var iconFontSize: Int = Defaults[.iconSize] {\n        didSet {\n            Defaults[.iconSize] = self.iconFontSize\n            for icon in dozerIcons {\n                icon.setSize()\n            }\n        }\n    }\n\n    public var buttonPadding: CGFloat = Defaults[.buttonPadding] {\n        didSet {\n            Defaults[.buttonPadding] = self.buttonPadding\n            for icon in dozerIcons {\n                icon.setSize()\n            }\n        }\n    }\n\n    // MARK: Public methods\n    public func hide() {\n        perform(action: .hide, statusIcon: .remove)\n        perform(action: .hide, statusIcon: .normalLeft)\n        if Defaults[.noIconMode] && Defaults[.isShortcutSet] {\n            perform(action: .hide, statusIcon: .normalRight)\n        }\n        didHideStatusBarIcons()\n        hideIconAndMenu()\n    }\n\n    public func hideAtLaunch() {\n        if hideStatusBarIconsAtLaunch {\n            if #available(macOS 11.0, *) {\n                Timer.scheduledTimer(withTimeInterval: 0.15, repeats: false) { _ in\n                   self.hide()\n                }\n            } else {\n                self.hide()\n            }\n        }\n    }\n\n    public func show() {\n        resetTimer()\n        perform(action: .hide, statusIcon: .remove)\n        perform(action: .show, statusIcon: .normalLeft)\n        if Defaults[.noIconMode] {\n            perform(action: .show, statusIcon: .normalRight)\n        }\n        didShowStatusBarIcons()\n        showIconAndMenu()\n    }\n\n    public func toggle() {\n        if get(dozerIcon: .normalLeft).isShown {\n            hide()\n        } else {\n            show()\n        }\n    }\n\n    public func toggleRemove() {\n        if get(dozerIcon: .remove).isShown {\n            perform(action: .hide, statusIcon: .remove)\n        } else {\n            perform(action: .show, statusIcon: .remove)\n        }\n    }\n\n    public func showIconAndMenu() {\n        if NSWorkspace.shared.frontmostApplication?.bundleIdentifier != AppInfo.bundleIdentifier {\n            previousApp = NSWorkspace.shared.frontmostApplication!\n        }\n        if Defaults[.showIconAndMenuEnabled] {\n            _ = DozerIcons.toggleDockIcon(showIcon: true)\n            NSApp.activate(ignoringOtherApps: true)\n        }\n    }\n\n    public func hideIconAndMenu() {\n        if Defaults[.showIconAndMenuEnabled] {\n            _ = DozerIcons.toggleDockIcon(showIcon: false)\n            if NSWorkspace.shared.frontmostApplication?.bundleIdentifier == AppInfo.bundleIdentifier {\n                previousApp.activate()\n            }\n        }\n    }\n\n    /// Force show all Dozer icons\n    public func showAll() {\n        perform(action: .show, statusIcon: .remove)\n        perform(action: .show, statusIcon: .normalLeft)\n        perform(action: .show, statusIcon: .normalRight)\n        didShowStatusBarIcons()\n    }\n\n    public func handleOptionClick() {\n        showIconAndMenu()\n        if get(dozerIcon: .normalLeft).isShown {\n            DozerIcons.shared.perform(\n                action: .toggle,\n                statusIcon: .remove\n            )\n        } else {\n            DozerIcons.shared.perform(\n                action: .show,\n                statusIcon: .normalLeft\n            )\n            DozerIcons.shared.perform(\n                action: .show,\n                statusIcon: .remove\n            )\n        }\n        stopUserInteractionTimer()\n        startUserInteractionTimer()\n        resetTimer()\n    }\n\n    // MARK: Show/hide lifecycle\n    private func didShowStatusBarIcons() {\n        //startTimer()\n        startUserInteractionTimer()\n    }\n\n    private func didHideStatusBarIcons() {\n        stopTimer()\n        stopUserInteractionTimer()\n    }\n\n    private func willHideStatusBarIcons() {\n        guard Defaults[.hideAfterDelayEnabled] else {\n            return\n        }\n\n        // don't hide on user interaction with menu bar\n        guard !isUserInteractingWithStatusBar() else {\n            resetTimer()\n            return\n        }\n\n        DozerIcons.shared.hide()\n    }\n\n    // MARK: timerToHideDozerIcons methods\n    private func startTimer() {\n        guard Defaults[.hideAfterDelayEnabled] else {\n            stopTimer()\n            return\n        }\n        timerToHideDozerIcons = Timer.scheduledTimer(withTimeInterval: Defaults[.hideAfterDelay], repeats: false) { (_: Timer) -> Void in\n            self.willHideStatusBarIcons()\n        }\n    }\n\n    private func stopTimer() {\n        timerToHideDozerIcons.invalidate()\n    }\n\n    func resetTimer() {\n        self.stopTimer()\n        self.startTimer()\n    }\n\n    // MARK: Private methods\n    /// Will fail silently if statusIcon does not exist\n    private func perform(action: StatusIconAction, statusIcon: DozerIcon) {\n        if statusIcon == .remove {\n            guard Defaults[.removeDozerIconEnabled] else {\n                return\n            }\n        }\n        let theStatusIcon: HelperstatusIcon = get(dozerIcon: statusIcon)\n        switch action {\n        case .show:\n            theStatusIcon.show()\n        case .hide:\n            theStatusIcon.hide()\n        case .toggle:\n            theStatusIcon.toggle()\n        }\n    }\n\n    /// Will crash if trying to get ´DozerIcon´ which does not exist in the menu bar\n    private func get(dozerIcon: DozerIcon) -> HelperstatusIcon {\n        var normalStatusIconsXPosition: [CGFloat] = []\n        for statusIcon in dozerIcons where statusIcon.type == .normal {\n            normalStatusIconsXPosition.append(statusIcon.xPositionOnScreen)\n        }\n        switch dozerIcon {\n        case .remove:\n            guard let removeStatusIcon = dozerIcons.first(where: { $0.type == .remove }) else {\n                fatalError(\"Failed getting remove status icon\")\n            }\n            return removeStatusIcon\n        case .normalLeft:\n            guard let leftStatusIcon = dozerIcons.first(where: { $0.xPositionOnScreen == normalStatusIconsXPosition.min() }) else {\n                fatalError(\"Failed getting status icon on the left\")\n            }\n            return leftStatusIcon\n        case .normalRight:\n            guard let rightStatusIcon = dozerIcons.first(where: { $0.xPositionOnScreen == normalStatusIconsXPosition.max() }) else {\n                fatalError(\"Failed getting status icon on the right\")\n            }\n            return rightStatusIcon\n        }\n    }\n\n    /// hide and show dock icon and thus its menu bar: to free up space to show more menu bar icons\n    public class func toggleDockIcon(showIcon state: Bool) -> Bool {\n        if state {\n            return NSApp.setActivationPolicy(NSApplication.ActivationPolicy.regular)\n        } else {\n            return NSApp.setActivationPolicy(NSApplication.ActivationPolicy.accessory)\n        }\n    }\n\n    /// Determines if the user is interacting with the menu bar based on level, owner and y-coordinate\n    ///\n    /// - Returns: Returns whether the user is interacting with the menu bar or not\n    private func isUserInteractingWithStatusBar() -> Bool {\n        let windowListType = CGWindowListOption.optionOnScreenOnly\n        guard let windowInfoList = CGWindowListCopyWindowInfo(windowListType, kCGNullWindowID) as NSArray? as? [[String: AnyObject]] else {\n            return false\n        }\n        var statusBarAppsWindowInfo: [Window] = []\n\n        for windowInfo in windowInfoList {\n            guard let window = Window(windowInfo),\n                // If the preferences window are close to the menu bar it won't auto hide\n                window.owner != \"Dozer\" else {\n                    continue\n            }\n\n            if window.isStatusIcon {\n                statusBarAppsWindowInfo.append(window)\n            }\n        }\n\n        for windowInfo in windowInfoList {\n            guard let window = Window(windowInfo) else { continue }\n            guard window.isStatusIcon == false else { continue }\n\n            for statusBarApp in statusBarAppsWindowInfo {\n                guard statusBarApp.owner == window.owner else { continue }\n                guard (statusBarApp.y + 22...statusBarApp.y + 30).contains(window.y) else { continue }\n\n                return true\n            }\n        }\n\n        return false\n    }\n\n    /// Wrapper class for CGWindowList\n    private class Window {\n        var x: Int = 0\n        var y: Int = 0\n        var width: Int = 0\n        var height: Int = 0\n\n        var level: Int\n        var owner: String\n\n        init?(_ windowInfo: [String: AnyObject]) {\n            guard let level = windowInfo[kCGWindowLayer as String] as? Int else {\n                return nil\n            }\n            guard let owner = windowInfo[kCGWindowOwnerName as String] as? String else {\n                return nil\n            }\n\n            self.level = level\n            self.owner = owner\n\n            let bounds: [String: Int] = windowInfo[kCGWindowBounds as String] as! [String: Int]\n            for item in bounds {\n                switch item.key {\n                case \"X\":\n                    x = item.value\n                case \"Y\":\n                    y = item.value\n                case \"Width\":\n                    width = item.value\n                case \"Height\":\n                    height = item.value\n                default:\n                    continue\n                }\n            }\n        }\n\n        var isStatusIcon: Bool {\n            guard level == 25 && height == 22 else {\n                return false\n            }\n            return true\n        }\n    }\n}\n"
  },
  {
    "path": "Dozer/Other/Assets.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"size\" : \"16x16\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"Icon_16x16.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"16x16\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"Icon_16x16@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"32x32\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"Icon_32x32.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"32x32\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"Icon_32x32@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"128x128\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"Icon_128x128.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"128x128\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"Icon_128x128@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"256x256\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"Icon_256x256.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"256x256\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"Icon_256x256@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"512x512\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"Icon_512x512.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"512x512\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"Icon_512x512@2x.png\",\n      \"scale\" : \"2x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "Dozer/Other/Assets.xcassets/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "Dozer/Other/Assets.xcassets/HelperStatusItemIcon.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"mac\",\n      \"filename\" : \"icons8-filled-circle-24.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"mac\",\n      \"scale\" : \"2x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"properties\" : {\n    \"template-rendering-intent\" : \"original\"\n  }\n}"
  },
  {
    "path": "Dozer/Other/Dozer.entitlements",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict/>\n</plist>\n"
  },
  {
    "path": "Dozer/Other/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIconFile</key>\n\t<string>AppIcon.icns</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>com.mortennn.Dozer</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>Dozer</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>4.2.0</string>\n\t<key>CFBundleVersion</key>\n\t<string>30</string>\n\t<key>LSApplicationCategoryType</key>\n\t<string>public.app-category.utilities</string>\n\t<key>LSMinimumSystemVersion</key>\n\t<string>10.13</string>\n\t<key>LSUIElement</key>\n\t<true/>\n\t<key>NSHumanReadableCopyright</key>\n\t<string>Copyright © 2020 Mortennn@GitHub. All rights reserved.</string>\n\t<key>NSPrincipalClass</key>\n\t<string>NSApplication</string>\n\t<key>SUFeedURL</key>\n\t<string>https://raw.githubusercontent.com/Mortennn/Dozer/master/appcast.xml</string>\n\t<key>SUPublicEDKey</key>\n\t<string>97gvwr+B10rf6Exnj8yPuAXrYSu9yKikViJkYkvPMHY=</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "Dozer/Other/bridging-header.h",
    "content": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/. */\n\n#ifndef bridging_header_h\n#define bridging_header_h\n\n#import <Cocoa/Cocoa.h>\n#import <MASShortcut/Shortcut.h>\n\n#endif\n"
  },
  {
    "path": "Dozer/Other/main.swift",
    "content": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/. */\n\nimport AppKit\nlet app = NSApplication.shared\nlet appDelegate = AppDelegate()\napp.delegate = appDelegate\n_ = NSApplicationMain(CommandLine.argc, CommandLine.unsafeArgv)\n"
  },
  {
    "path": "Dozer/StatusIconClasses/HelperStatusIcon.swift",
    "content": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/. */\n\nimport Cocoa\nimport Defaults\n\nprivate struct StatusIconLength {\n    static var show: CGFloat {\n        Defaults[.buttonPadding]\n    }\n    static let hide: CGFloat = 10_000\n}\n\nclass HelperstatusIcon {\n    var type: StatusIconType\n\n    let statusIcon: NSStatusItem = NSStatusBar.system.statusItem(withLength: StatusIconLength.show)\n\n    init() {\n        type = .normal\n        statusIcon.length = StatusIconLength.show\n        statusIcon.highlightMode = false\n\n        guard let statusIconButton = statusIcon.button else {\n            fatalError(\"helper status item button failed\")\n        }\n\n        statusIconButton.target = self\n        statusIconButton.action = #selector(statusIconClicked(_:))\n        setIcon()\n        statusIconButton.sendAction(on: [.leftMouseDown, .rightMouseDown])\n    }\n\n    deinit {\n        print(\"status item has been deallocated\")\n    }\n\n    func show() {\n        statusIcon.length = StatusIconLength.show\n    }\n\n    func hide() {\n        statusIcon.length = StatusIconLength.hide\n    }\n\n    func toggle() {\n        if isShown {\n            hide()\n        } else {\n            show()\n        }\n    }\n\n    func setIcon() {\n        guard let statusIconButton = statusIcon.button else {\n            fatalError(\"helper status item button failed\")\n        }\n        statusIconButton.image = Icons().helperstatusIcon\n        statusIconButton.image!.isTemplate = true\n    }\n\n    func setSize() {\n        if statusIcon.length != StatusIconLength.hide {\n            statusIcon.length = StatusIconLength.show\n        }\n        guard let statusIconButton = statusIcon.button else {\n            fatalError(\"helper status item button failed\")\n        }\n        let image = statusIconButton.image\n        var size = DozerIcons.shared.iconFontSize\n        if self.type == .remove {\n            size /= 2\n        }\n        image?.size = NSSize(width: size, height: size)\n        statusIconButton.image = image\n    }\n\n    func showRemoveIcons() {}\n\n    @objc\n    func statusIconClicked(_ sender: AnyObject?) {}\n\n    var isShown: Bool {\n        statusIcon.length == StatusIconLength.show\n    }\n\n    var isHidden: Bool {\n        statusIcon.length == StatusIconLength.hide\n    }\n\n    var xPositionOnScreen: CGFloat {\n        guard let dozerIconFrame = statusIcon.button?.window?.frame else {\n            return 0\n        }\n        let dozerIconXPosition = dozerIconFrame.origin.x\n        return dozerIconXPosition\n    }\n}\n"
  },
  {
    "path": "Dozer/StatusIconClasses/NormalStatusIcon.swift",
    "content": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/. */\n\nimport Cocoa\nimport Defaults\n\nclass NormalStatusIcon: HelperstatusIcon {\n    override init() {\n        super.init()\n        type = .normal\n    }\n\n    override func statusIconClicked(_: AnyObject?) {\n        guard let currentEvent = NSApp.currentEvent else {\n            return\n        }\n\n        if currentEvent.modifierFlags.contains(.option) &&\n            !currentEvent.modifierFlags.contains(.control) &&\n            !currentEvent.modifierFlags.contains(.command) {\n            DozerIcons.shared.handleOptionClick()\n\n            return\n        }\n\n        switch currentEvent.type {\n        case .leftMouseDown:\n            DozerIcons.shared.toggle()\n        case .rightMouseDown:\n            appDelegate.preferencesWindowController.show(preferencePane: .general)\n        default:\n            break\n        }\n    }\n}\n"
  },
  {
    "path": "Dozer/StatusIconClasses/RemoveStatusIcon.swift",
    "content": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/. */\n\nimport Cocoa\nimport Defaults\n\nclass RemoveStatusIcon: HelperstatusIcon {\n    override init() {\n        super.init()\n        type = .remove\n    }\n\n    override func statusIconClicked(_: AnyObject?) {\n        guard let currentEvent = NSApp.currentEvent else {\n            return\n        }\n\n        switch currentEvent.type {\n        case .leftMouseDown:\n            DozerIcons.shared.toggleRemove()\n        case .rightMouseDown:\n            appDelegate.preferencesWindowController.show(preferencePane: .general)\n        default:\n            break\n        }\n    }\n\n    override func setIcon() {\n        guard let statusIconButton = statusIcon.button else {\n            fatalError(\"helper status item button failed\")\n        }\n        statusIconButton.image = Icons().removeStatusIcon\n        statusIconButton.image!.isTemplate = true\n    }\n}\n"
  },
  {
    "path": "Dozer/Util.swift",
    "content": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/. */\n\nimport Cocoa\nimport Defaults\n\nextension NSButton {\n    var isChecked: Bool {\n        get {\n            state == .on\n        }\n        set {\n            state = newValue ? .on : .off\n        }\n    }\n}\n\nstruct Icons {\n    var helperstatusIcon: NSImage {\n        let size = Defaults[.iconSize]\n        return create(image: Assets.helperStatusItemIcon.name, size, size)\n    }\n\n    var removeStatusIcon: NSImage {\n        let size = Defaults[.iconSize] / 2\n        return create(image: Assets.helperStatusItemIcon.name, size, size)\n    }\n\n    private func create(image name: String, _ width: Int, _ height: Int) -> NSImage {\n        guard let image = Bundle.main.image(forResource: NSImage.Name(name)) else {\n            fatalError(\"get image failed\")\n        }\n        image.size = NSSize(width: width, height: height)\n        return image\n    }\n}\n"
  },
  {
    "path": "Dozer/ViewControllers/DozerVC.swift",
    "content": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/. */\n\nimport Cocoa\nimport Sparkle\nimport Preferences\n\nfinal class Dozer: NSViewController, PreferencePane {\n    let preferencePaneIdentifier = Preferences.PaneIdentifier.dozer\n    let preferencePaneTitle: String = \"Dozer\"\n    let toolbarItemIcon = NSImage(named: \"AppIcon\")!\n\n    override var nibName: NSNib.Name? { \"Dozer\" }\n\n    @IBOutlet private var versionLabel: NSTextField!\n    @IBOutlet private var checkForUpdates: NSButton!\n    @IBOutlet private var quit: NSButton!\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n\n        if let releaseVersionNumber = AppInfo.releaseVersionNumber,\n            let buildVersionNumber = AppInfo.buildVersionNumber {\n            versionLabel.stringValue = \"\\(releaseVersionNumber) (\\(buildVersionNumber))\"\n        }\n\n        checkForUpdates.target = SUUpdater.shared()!\n        checkForUpdates.action = #selector(SUUpdater.shared()!.checkForUpdates(_:))\n\n        quit.action = #selector(NSApp.terminate(_:))\n    }\n}\n"
  },
  {
    "path": "Dozer/ViewControllers/GeneralVC.swift",
    "content": "/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at https://mozilla.org/MPL/2.0/. */\n\nimport Cocoa\nimport Preferences\nimport MASShortcut\nimport LaunchAtLogin\nimport Sparkle\nimport Defaults\n\nfinal class General: NSViewController, PreferencePane {\n    let preferencePaneIdentifier = Preferences.PaneIdentifier.general\n    let preferencePaneTitle: String = \"General\"\n    let toolbarItemIcon = NSImage(named: NSImage.preferencesGeneralName)!\n\n    override var nibName: NSNib.Name? { \"General\" }\n\n    fileprivate var userShortCut: MASShortcut!\n\n    @IBOutlet private var LaunchAtLoginCheckbox: NSButton!\n    @IBOutlet private var CheckForUpdatesCheckbox: NSButton!\n    @IBOutlet private var HideStatusBarIconsAtLaunchCheckbox: NSButton!\n    @IBOutlet private var HideStatusBarIconsAfterDelayCheckbox: NSButton!\n    @IBOutlet private var HideStatusBarIconsSecondsPopUpButton: NSPopUpButton!\n    @IBOutlet private var HideBothDozerIconsCheckbox: NSButton!\n    @IBOutlet private var EnableRemoveDozerIconCheckbox: NSButton!\n    @IBOutlet private var ShowIconAndMenuCheckbox: NSButton!\n    @IBOutlet private var FontSizePopUpButton: NSPopUpButton!\n    @IBOutlet private var ButtonPaddingPopUpButton: NSPopUpButton!\n    @IBOutlet private var ToggleMenuItemsView: MASShortcutView!\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n\n        LaunchAtLoginCheckbox.focusRingType = .none\n\n        LaunchAtLoginCheckbox.isChecked = LaunchAtLogin.isEnabled\n        if SUUpdater.shared() != nil {\n            CheckForUpdatesCheckbox.isChecked = SUUpdater.shared()!.automaticallyChecksForUpdates\n        } else {\n            CheckForUpdatesCheckbox.isChecked = false\n        }\n\n        HideStatusBarIconsAtLaunchCheckbox.isChecked = Defaults[.hideAtLaunchEnabled]\n        HideStatusBarIconsAfterDelayCheckbox.isChecked = Defaults[.hideAfterDelayEnabled]\n        HideBothDozerIconsCheckbox.isChecked = Defaults[.noIconMode]\n        EnableRemoveDozerIconCheckbox.isChecked = Defaults[.removeDozerIconEnabled]\n        ShowIconAndMenuCheckbox.isChecked = Defaults[.showIconAndMenuEnabled]\n        HideStatusBarIconsSecondsPopUpButton.selectItem(withTitle: \"\\(Int(Defaults[.hideAfterDelay])) seconds\")\n        FontSizePopUpButton.selectItem(withTitle: \"\\(Int(Defaults[.iconSize])) px\")\n        ButtonPaddingPopUpButton.selectItem(withTitle: \"\\(Int(Defaults[.buttonPadding])) px\")\n\n        ToggleMenuItemsView.associatedUserDefaultsKey = UserDefaultKeys.Shortcuts.ToggleMenuItems\n        view.addSubview(ToggleMenuItemsView)\n        configureEnabledNoIconCheckbox()\n\n        ToggleMenuItemsView.shortcutValueChange = { _ -> Void in\n            self.userShortCut = self.ToggleMenuItemsView.shortcutValue\n            self.configureEnabledNoIconCheckbox()\n        }\n    }\n\n    @IBAction private func launchAtLoginClicked(_ sender: NSButton) {\n        LaunchAtLogin.isEnabled = (sender.state == .on)\n    }\n\n    @IBAction private func automaticallyCheckForUpdatesClicked(_ sender: NSButton) {\n        guard SUUpdater.shared() != nil else {\n            CheckForUpdatesCheckbox.isChecked = false\n            return\n        }\n        SUUpdater.shared()!.automaticallyChecksForUpdates = CheckForUpdatesCheckbox.isChecked\n    }\n\n    @IBAction private func hideStatusBarIconsAtLaunchClicked(_ sender: NSButton) {\n        DozerIcons.shared.hideStatusBarIconsAtLaunch = HideStatusBarIconsAtLaunchCheckbox.isChecked\n    }\n\n    @IBAction private func hideStatusBarIconsAfterDelayClicked(_ sender: NSButton) {\n        DozerIcons.shared.hideStatusBarIconsAfterDelay = HideStatusBarIconsAfterDelayCheckbox.isChecked\n    }\n\n    @IBAction private func hideStatusBarIconsSecondsUpdated(_ sender: NSPopUpButton) {\n        Defaults[.hideAfterDelay] = TimeInterval(HideStatusBarIconsSecondsPopUpButton.selectedTag())\n        DozerIcons.shared.resetTimer()\n    }\n\n    @IBAction private func hideBothDozerIconsClicked(_ sender: NSButton) {\n        DozerIcons.shared.hideBothDozerIcons = HideBothDozerIconsCheckbox.isChecked\n    }\n\n    @IBAction private func showIconAndMenuClicked(_ sender: NSButton) {\n        DozerIcons.shared.enableIconAndMenu = ShowIconAndMenuCheckbox.isChecked\n    }\n\n    @IBAction private func fontSizeChanged(_ sender: NSPopUpButton) {\n        DozerIcons.shared.iconFontSize = FontSizePopUpButton.selectedTag()\n    }\n\n    @IBAction private func buttonPaddingChanged(_ sender: NSPopUpButton) {\n        DozerIcons.shared.buttonPadding = CGFloat(ButtonPaddingPopUpButton.selectedTag())\n    }\n\n    @IBAction private func enableRemoveDozerIconClicked(_ sender: NSButton) {\n        DozerIcons.shared.enableRemoveDozerIcon = EnableRemoveDozerIconCheckbox.isChecked\n    }\n\n    /// disables the noIcon-checkbox if no shortcut is set and keeps track whether shortcut is set\n    private func configureEnabledNoIconCheckbox() {\n        if ToggleMenuItemsView.shortcutValue == nil {\n            HideBothDozerIconsCheckbox.isEnabled = false\n            Defaults[.isShortcutSet] = false\n        } else {\n            HideBothDozerIconsCheckbox.isEnabled = true\n            Defaults[.isShortcutSet] = true\n        }\n    }\n}\n"
  },
  {
    "path": "Dozer/XIB/Dozer.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"17701\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\" customObjectInstantitationMethod=\"direct\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"17701\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"Dozer\" customModule=\"Dozer\" customModuleProvider=\"target\">\n            <connections>\n                <outlet property=\"checkForUpdates\" destination=\"9vD-g9-QSn\" id=\"vq3-pD-sN9\"/>\n                <outlet property=\"quit\" destination=\"pje-Gc-VuB\" id=\"bVZ-fZ-wIo\"/>\n                <outlet property=\"versionLabel\" destination=\"55H-bw-r5z\" id=\"aJg-O9-Hf5\"/>\n                <outlet property=\"view\" destination=\"c22-O7-iKe\" id=\"6nC-uH-0pZ\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <customView id=\"c22-O7-iKe\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"182\" height=\"127\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n            <subviews>\n                <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"9vD-g9-QSn\">\n                    <rect key=\"frame\" x=\"13\" y=\"46\" width=\"156\" height=\"32\"/>\n                    <buttonCell key=\"cell\" type=\"push\" title=\"Check for updates\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"rlC-nV-9gL\">\n                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <string key=\"keyEquivalent\">u</string>\n                        <modifierMask key=\"keyEquivalentModifierMask\" command=\"YES\"/>\n                    </buttonCell>\n                </button>\n                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"SpT-W4-9Jy\">\n                    <rect key=\"frame\" x=\"18\" y=\"83\" width=\"60\" height=\"24\"/>\n                    <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"Dozer\" id=\"aTf-T7-WMw\">\n                        <font key=\"font\" metaFont=\"systemBold\" size=\"20\"/>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <textField verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"55H-bw-r5z\">\n                    <rect key=\"frame\" x=\"82\" y=\"85\" width=\"82\" height=\"16\"/>\n                    <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"x.x.x (xxx)\" id=\"D7X-My-KCz\">\n                        <font key=\"font\" metaFont=\"systemLight\" size=\"13\"/>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"pje-Gc-VuB\">\n                    <rect key=\"frame\" x=\"13\" y=\"13\" width=\"156\" height=\"32\"/>\n                    <buttonCell key=\"cell\" type=\"push\" title=\"Quit\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"WWq-a5-SXU\">\n                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <string key=\"keyEquivalent\">q</string>\n                        <modifierMask key=\"keyEquivalentModifierMask\" command=\"YES\"/>\n                    </buttonCell>\n                </button>\n            </subviews>\n            <constraints>\n                <constraint firstItem=\"55H-bw-r5z\" firstAttribute=\"leading\" secondItem=\"SpT-W4-9Jy\" secondAttribute=\"trailing\" constant=\"8\" symbolic=\"YES\" id=\"4sc-ch-AOc\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"9vD-g9-QSn\" secondAttribute=\"trailing\" constant=\"20\" symbolic=\"YES\" id=\"QAs-vQ-uHy\"/>\n                <constraint firstItem=\"SpT-W4-9Jy\" firstAttribute=\"leading\" secondItem=\"c22-O7-iKe\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"RUa-mD-Fqp\"/>\n                <constraint firstItem=\"9vD-g9-QSn\" firstAttribute=\"leading\" secondItem=\"c22-O7-iKe\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"Rjb-Gs-uK3\"/>\n                <constraint firstItem=\"SpT-W4-9Jy\" firstAttribute=\"top\" secondItem=\"c22-O7-iKe\" secondAttribute=\"top\" constant=\"20\" symbolic=\"YES\" id=\"Xmc-Nu-0b4\"/>\n                <constraint firstItem=\"55H-bw-r5z\" firstAttribute=\"firstBaseline\" secondItem=\"SpT-W4-9Jy\" secondAttribute=\"firstBaseline\" id=\"ZL7-wv-Jn7\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"pje-Gc-VuB\" secondAttribute=\"bottom\" constant=\"20\" symbolic=\"YES\" id=\"alI-LE-btA\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"55H-bw-r5z\" secondAttribute=\"trailing\" constant=\"20\" symbolic=\"YES\" id=\"baX-kt-VJH\"/>\n                <constraint firstItem=\"pje-Gc-VuB\" firstAttribute=\"top\" secondItem=\"9vD-g9-QSn\" secondAttribute=\"bottom\" constant=\"13\" id=\"d5E-ht-mL4\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"pje-Gc-VuB\" secondAttribute=\"trailing\" constant=\"20\" symbolic=\"YES\" id=\"kob-LH-1Cr\"/>\n                <constraint firstItem=\"9vD-g9-QSn\" firstAttribute=\"top\" secondItem=\"SpT-W4-9Jy\" secondAttribute=\"bottom\" constant=\"10\" id=\"rQi-Et-gGH\"/>\n                <constraint firstAttribute=\"width\" relation=\"greaterThanOrEqual\" constant=\"182\" id=\"x8b-be-Sai\"/>\n                <constraint firstItem=\"pje-Gc-VuB\" firstAttribute=\"leading\" secondItem=\"c22-O7-iKe\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"xug-sv-EmU\"/>\n            </constraints>\n            <point key=\"canvasLocation\" x=\"-10\" y=\"81.5\"/>\n        </customView>\n    </objects>\n</document>\n"
  },
  {
    "path": "Dozer/XIB/General.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"15705\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\" customObjectInstantitationMethod=\"direct\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"15705\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"General\" customModule=\"Dozer\" customModuleProvider=\"target\">\n            <connections>\n                <outlet property=\"ButtonPaddingPopUpButton\" destination=\"D1W-S4-kqi\" id=\"FHs-Gq-kJv\"/>\n                <outlet property=\"CheckForUpdatesCheckbox\" destination=\"htn-2c-54s\" id=\"sO5-Ft-amU\"/>\n                <outlet property=\"EnableRemoveDozerIconCheckbox\" destination=\"pDX-1f-4hl\" id=\"uHk-1U-HG9\"/>\n                <outlet property=\"FontSizePopUpButton\" destination=\"Lku-wR-aPA\" id=\"GZe-ld-Ip5\"/>\n                <outlet property=\"HideBothDozerIconsCheckbox\" destination=\"w7z-Qa-kqw\" id=\"L5J-6S-jtb\"/>\n                <outlet property=\"HideStatusBarIconsAfterDelayCheckbox\" destination=\"hOy-nu-Sy0\" id=\"aNv-vt-dQL\"/>\n                <outlet property=\"HideStatusBarIconsAtLaunchCheckbox\" destination=\"phN-BY-WEC\" id=\"zff-cm-aik\"/>\n                <outlet property=\"HideStatusBarIconsSecondsPopUpButton\" destination=\"Ziw-so-qpj\" id=\"iWr-jc-Wbb\"/>\n                <outlet property=\"LaunchAtLoginCheckbox\" destination=\"29f-2D-VsY\" id=\"X2Z-FE-7IA\"/>\n                <outlet property=\"ShowIconAndMenuCheckbox\" destination=\"oAW-Yf-7fi\" id=\"7ZW-82-aRZ\"/>\n                <outlet property=\"ToggleMenuItemsView\" destination=\"4Dt-wS-aZ8\" id=\"PAm-fa-zGy\"/>\n                <outlet property=\"view\" destination=\"c22-O7-iKe\" id=\"buC-Sz-vlD\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <customView translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"c22-O7-iKe\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"405\" height=\"415\"/>\n            <subviews>\n                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"29f-2D-VsY\">\n                    <rect key=\"frame\" x=\"18\" y=\"379\" width=\"361\" height=\"18\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <buttonCell key=\"cell\" type=\"check\" title=\"Launch at login\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"qB0-b5-ye2\">\n                        <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                    </buttonCell>\n                    <connections>\n                        <action selector=\"launchAtLoginClicked:\" target=\"-2\" id=\"Ci8-n6-lms\"/>\n                    </connections>\n                </button>\n                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"htn-2c-54s\">\n                    <rect key=\"frame\" x=\"18\" y=\"351\" width=\"361\" height=\"18\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <buttonCell key=\"cell\" type=\"check\" title=\"Automatically check for updates\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"3Mj-bx-k9f\">\n                        <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                    </buttonCell>\n                    <connections>\n                        <action selector=\"automaticallyCheckForUpdatesClicked:\" target=\"-2\" id=\"TJa-HP-dNZ\"/>\n                    </connections>\n                </button>\n                <box verticalHuggingPriority=\"750\" fixedFrame=\"YES\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ayr-kp-VXW\">\n                    <rect key=\"frame\" x=\"20\" y=\"339\" width=\"365\" height=\"5\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                </box>\n                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"phN-BY-WEC\">\n                    <rect key=\"frame\" x=\"18\" y=\"313\" width=\"357\" height=\"18\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <buttonCell key=\"cell\" type=\"check\" title=\"Hide menu bar icons at launch\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"24v-K4-mhc\">\n                        <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                    </buttonCell>\n                    <connections>\n                        <action selector=\"hideStatusBarIconsAtLaunchClicked:\" target=\"-2\" id=\"9pu-qd-GaG\"/>\n                    </connections>\n                </button>\n                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"hOy-nu-Sy0\">\n                    <rect key=\"frame\" x=\"18\" y=\"283\" width=\"179\" height=\"18\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <buttonCell key=\"cell\" type=\"check\" title=\"Hide menu bar icons after\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"hS1-gl-Pc1\">\n                        <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                    </buttonCell>\n                    <connections>\n                        <action selector=\"hideStatusBarIconsAfterDelayClicked:\" target=\"-2\" id=\"XYy-w6-La0\"/>\n                    </connections>\n                </button>\n                <popUpButton verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Ziw-so-qpj\" userLabel=\"10 seconds\">\n                    <rect key=\"frame\" x=\"197\" y=\"279\" width=\"114\" height=\"25\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <popUpButtonCell key=\"cell\" type=\"push\" title=\"10 seconds\" bezelStyle=\"rounded\" alignment=\"left\" lineBreakMode=\"truncatingTail\" state=\"on\" borderStyle=\"borderAndBezel\" tag=\"10\" imageScaling=\"proportionallyDown\" inset=\"2\" selectedItem=\"OdJ-mZ-u0T\" id=\"JbX-Xw-iVE\" userLabel=\"10 seconds\">\n                        <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"menu\"/>\n                        <menu key=\"menu\" id=\"fJp-Cl-42M\">\n                            <items>\n                                <menuItem title=\"30 seconds\" tag=\"30\" id=\"dAj-2T-ECp\"/>\n                                <menuItem title=\"20 seconds\" tag=\"20\" id=\"tfP-VF-MG8\"/>\n                                <menuItem title=\"15 seconds\" tag=\"15\" id=\"EK8-vh-0H9\"/>\n                                <menuItem title=\"10 seconds\" state=\"on\" tag=\"10\" id=\"OdJ-mZ-u0T\"/>\n                                <menuItem title=\"5 seconds\" tag=\"5\" id=\"Uqk-BC-hfK\"/>\n                                <menuItem title=\"3 seconds\" tag=\"3\" id=\"ven-uH-a0W\"/>\n                            </items>\n                        </menu>\n                    </popUpButtonCell>\n                    <connections>\n                        <action selector=\"hideStatusBarIconsSecondsUpdated:\" target=\"-2\" id=\"07d-zi-l5c\"/>\n                    </connections>\n                </popUpButton>\n                <textField horizontalHuggingPriority=\"750\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"CNz-dE-9vs\">\n                    <rect key=\"frame\" x=\"36\" y=\"267\" width=\"349\" height=\"13\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" sendsActionOnEndEditing=\"YES\" title=\"The delay resets when you interact with the menu bar.\" id=\"QoH-wj-4Bo\">\n                        <font key=\"font\" metaFont=\"system\" size=\"10\"/>\n                        <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"w7z-Qa-kqw\">\n\t            <rect key=\"frame\" x=\"18\" y=\"240\" width=\"357\" height=\"18\"/>\n\t            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n\t            <buttonCell key=\"cell\" type=\"check\" title=\"Hide both Dozer icons when menu bar icons are hidden\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"PrK-hp-6i2\">\n\t\t            <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n\t            </buttonCell>\n\t            <connections>\n\t\t            <action selector=\"hideBothDozerIconsClicked:\" target=\"-2\" id=\"PdP-dQ-ir6\"/>\n\t            </connections>\n                </button>\n                <textField horizontalHuggingPriority=\"750\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Yjj-cw-XAs\">\n                    <rect key=\"frame\" x=\"36\" y=\"224\" width=\"349\" height=\"13\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" sendsActionOnEndEditing=\"YES\" title=\"Use the shortcut to show the menu bar icons.\" id=\"vbw-Q7-ecG\">\n                        <font key=\"font\" metaFont=\"system\" size=\"10\"/>\n                        <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"pDX-1f-4hl\">\n                    <rect key=\"frame\" x=\"18\" y=\"197\" width=\"361\" height=\"18\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <buttonCell key=\"cell\" type=\"check\" title=\"Enable 'remove' Dozer icon\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"Toa-to-mCu\">\n                        <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                    </buttonCell>\n                    <connections>\n                        <action selector=\"enableRemoveDozerIconClicked:\" target=\"-2\" id=\"vr8-Rh-V8P\"/>\n                    </connections>\n                </button>\n                <textField horizontalHuggingPriority=\"750\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"IDw-Ag-Gcv\">\n                    <rect key=\"frame\" x=\"36\" y=\"168\" width=\"349\" height=\"26\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" sendsActionOnEndEditing=\"YES\" title=\"Enable additional Dozer icon. Show/hide less frequently used menu bar icons using option+click.\" id=\"UjO-Yp-XO4\">\n                        <font key=\"font\" metaFont=\"system\" size=\"10\"/>\n                        <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"oAW-Yf-7fi\">\n                    <rect key=\"frame\" x=\"18\" y=\"140\" width=\"352\" height=\"18\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <buttonCell key=\"cell\" type=\"check\" title=\"Use full width of screen when showing menu bar icons\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"BFd-a4-rMo\">\n                        <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                    </buttonCell>\n                    <connections>\n                        <action selector=\"showIconAndMenuClicked:\" target=\"-2\" id=\"iKs-IV-lOa\"/>\n                    </connections>\n                </button>\n                <textField horizontalHuggingPriority=\"750\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"kyk-ok-xNW\">\n                    <rect key=\"frame\" x=\"36\" y=\"124\" width=\"330\" height=\"13\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" sendsActionOnEndEditing=\"YES\" title=\"Temporarily replaces Application menu and shows Dozer dock icon.\" id=\"ETO-zu-yhS\">\n                        <font key=\"font\" metaFont=\"system\" size=\"10\"/>\n                        <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <box verticalHuggingPriority=\"750\" fixedFrame=\"YES\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"6I6-gw-UlF\">\n                    <rect key=\"frame\" x=\"20\" y=\"113\" width=\"365\" height=\"5\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                </box>\n                <popUpButton verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Lku-wR-aPA\">\n                    <rect key=\"frame\" x=\"18\" y=\"82\" width=\"76\" height=\"25\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <popUpButtonCell key=\"cell\" type=\"push\" title=\"10 px\" bezelStyle=\"rounded\" alignment=\"left\" lineBreakMode=\"truncatingTail\" state=\"on\" borderStyle=\"borderAndBezel\" tag=\"10\" imageScaling=\"proportionallyDown\" inset=\"2\" selectedItem=\"K1H-GX-dgi\" id=\"dMj-ju-7Q7\">\n                        <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"menu\"/>\n                        <menu key=\"menu\" id=\"Ve7-Ni-pIE\">\n                            <items>\n                                <menuItem title=\"10 px\" state=\"on\" tag=\"10\" id=\"K1H-GX-dgi\"/>\n                                <menuItem title=\"9 px\" tag=\"9\" id=\"MjK-xE-xDS\"/>\n                                <menuItem title=\"8 px\" tag=\"8\" id=\"Tbm-iD-LcT\"/>\n                                <menuItem title=\"7 px\" tag=\"7\" id=\"As9-yv-ClQ\"/>\n                                <menuItem title=\"6 px\" tag=\"6\" id=\"QkM-lb-TEG\"/>\n                                <menuItem title=\"5 px\" tag=\"5\" id=\"eXo-xP-6N7\"/>\n                                <menuItem title=\"4 px\" tag=\"4\" id=\"LhP-q9-3yU\"/>\n                            </items>\n                        </menu>\n                    </popUpButtonCell>\n                    <connections>\n                        <action selector=\"fontSizeChanged:\" target=\"-2\" id=\"u5V-8g-GVu\"/>\n                    </connections>\n                </popUpButton>\n                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"TmQ-WL-Cmf\">\n                    <rect key=\"frame\" x=\"95\" y=\"88\" width=\"150\" height=\"16\"/>\n                    <autoresizingMask key=\"autoresizingMask\"/>\n                    <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"Font size of Dozer icons\" id=\"lI8-BD-YX6\">\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <popUpButton verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"D1W-S4-kqi\">\n                    <rect key=\"frame\" x=\"18\" y=\"52\" width=\"76\" height=\"25\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <popUpButtonCell key=\"cell\" type=\"push\" title=\"40 px\" bezelStyle=\"rounded\" alignment=\"left\" lineBreakMode=\"truncatingTail\" state=\"on\" borderStyle=\"borderAndBezel\" tag=\"40\" imageScaling=\"proportionallyDown\" inset=\"2\" selectedItem=\"nEF-ne-Uur\" id=\"4qm-Fp-7BG\">\n                        <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"menu\"/>\n                        <menu key=\"menu\" id=\"PKu-6K-JrX\">\n                            <items>\n                                <menuItem title=\"40 px\" state=\"on\" tag=\"40\" id=\"nEF-ne-Uur\"/>\n                                <menuItem title=\"35 px\" tag=\"35\" id=\"MuZ-9R-GNV\"/>\n                                <menuItem title=\"30 px\" tag=\"30\" id=\"RRq-eq-zCw\"/>\n                                <menuItem title=\"25 px\" tag=\"25\" id=\"j6J-tT-q5c\"/>\n                                <menuItem title=\"20 px\" tag=\"20\" id=\"CSv-Pn-4v4\"/>\n                                <menuItem title=\"15 px\" tag=\"15\" id=\"SEt-aL-AMP\"/>\n                                <menuItem title=\"10 px\" tag=\"10\" id=\"xkS-gq-5Cm\"/>\n                            </items>\n                        </menu>\n                    </popUpButtonCell>\n                    <connections>\n                        <action selector=\"buttonPaddingChanged:\" target=\"-2\" id=\"Wk8-Qm-W0g\"/>\n                    </connections>\n                </popUpButton>\n                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"tB7-K2-Gts\">\n                    <rect key=\"frame\" x=\"95\" y=\"58\" width=\"131\" height=\"16\"/>\n                    <autoresizingMask key=\"autoresizingMask\"/>\n                    <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"Width of Dozer icons\" id=\"y67-Ov-Fvx\">\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <box verticalHuggingPriority=\"750\" fixedFrame=\"YES\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"6Mb-v7-wV4\">\n                    <rect key=\"frame\" x=\"20\" y=\"43\" width=\"365\" height=\"5\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                </box>\n                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"4Dt-wS-aZ8\" customClass=\"MASShortcutView\">\n                    <rect key=\"frame\" x=\"20\" y=\"15\" width=\"106\" height=\"20\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                </customView>\n                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"nmU-jA-Ht8\">\n                    <rect key=\"frame\" x=\"130\" y=\"17\" width=\"249\" height=\"17\"/>\n                    <autoresizingMask key=\"autoresizingMask\"/>\n                    <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" alignment=\"left\" title=\"Show/hide menu bar icons\" id=\"HZP-sl-H5I\">\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n            </subviews>\n            <constraints>\n                <constraint firstAttribute=\"width\" constant=\"405\" id=\"WEJ-WZ-mea\"/>\n                <constraint firstAttribute=\"height\" constant=\"415\" id=\"ieY-Q5-nHf\"/>\n            </constraints>\n            <point key=\"canvasLocation\" x=\"137.5\" y=\"172.5\"/>\n        </customView>\n    </objects>\n</document>\n"
  },
  {
    "path": "LICENSE",
    "content": "Mozilla Public License Version 2.0\n==================================\n\n1. Definitions\n--------------\n\n1.1. \"Contributor\"\n    means each individual or legal entity that creates, contributes to\n    the creation of, or owns Covered Software.\n\n1.2. \"Contributor Version\"\n    means the combination of the Contributions of others (if any) used\n    by a Contributor and that particular Contributor's Contribution.\n\n1.3. \"Contribution\"\n    means Covered Software of a particular Contributor.\n\n1.4. \"Covered Software\"\n    means Source Code Form to which the initial Contributor has attached\n    the notice in Exhibit A, the Executable Form of such Source Code\n    Form, and Modifications of such Source Code Form, in each case\n    including portions thereof.\n\n1.5. \"Incompatible With Secondary Licenses\"\n    means\n\n    (a) that the initial Contributor has attached the notice described\n        in Exhibit B to the Covered Software; or\n\n    (b) that the Covered Software was made available under the terms of\n        version 1.1 or earlier of the License, but not also under the\n        terms of a Secondary License.\n\n1.6. \"Executable Form\"\n    means any form of the work other than Source Code Form.\n\n1.7. \"Larger Work\"\n    means a work that combines Covered Software with other material, in\n    a separate file or files, that is not Covered Software.\n\n1.8. \"License\"\n    means this document.\n\n1.9. \"Licensable\"\n    means having the right to grant, to the maximum extent possible,\n    whether at the time of the initial grant or subsequently, any and\n    all of the rights conveyed by this License.\n\n1.10. \"Modifications\"\n    means any of the following:\n\n    (a) any file in Source Code Form that results from an addition to,\n        deletion from, or modification of the contents of Covered\n        Software; or\n\n    (b) any new file in Source Code Form that contains any Covered\n        Software.\n\n1.11. \"Patent Claims\" of a Contributor\n    means any patent claim(s), including without limitation, method,\n    process, and apparatus claims, in any patent Licensable by such\n    Contributor that would be infringed, but for the grant of the\n    License, by the making, using, selling, offering for sale, having\n    made, import, or transfer of either its Contributions or its\n    Contributor Version.\n\n1.12. \"Secondary License\"\n    means either the GNU General Public License, Version 2.0, the GNU\n    Lesser General Public License, Version 2.1, the GNU Affero General\n    Public License, Version 3.0, or any later versions of those\n    licenses.\n\n1.13. \"Source Code Form\"\n    means the form of the work preferred for making modifications.\n\n1.14. \"You\" (or \"Your\")\n    means an individual or a legal entity exercising rights under this\n    License. For legal entities, \"You\" includes any entity that\n    controls, is controlled by, or is under common control with You. For\n    purposes of this definition, \"control\" means (a) the power, direct\n    or indirect, to cause the direction or management of such entity,\n    whether by contract or otherwise, or (b) ownership of more than\n    fifty percent (50%) of the outstanding shares or beneficial\n    ownership of such entity.\n\n2. License Grants and Conditions\n--------------------------------\n\n2.1. Grants\n\nEach Contributor hereby grants You a world-wide, royalty-free,\nnon-exclusive license:\n\n(a) under intellectual property rights (other than patent or trademark)\n    Licensable by such Contributor to use, reproduce, make available,\n    modify, display, perform, distribute, and otherwise exploit its\n    Contributions, either on an unmodified basis, with Modifications, or\n    as part of a Larger Work; and\n\n(b) under Patent Claims of such Contributor to make, use, sell, offer\n    for sale, have made, import, and otherwise transfer either its\n    Contributions or its Contributor Version.\n\n2.2. Effective Date\n\nThe licenses granted in Section 2.1 with respect to any Contribution\nbecome effective for each Contribution on the date the Contributor first\ndistributes such Contribution.\n\n2.3. Limitations on Grant Scope\n\nThe licenses granted in this Section 2 are the only rights granted under\nthis License. No additional rights or licenses will be implied from the\ndistribution or licensing of Covered Software under this License.\nNotwithstanding Section 2.1(b) above, no patent license is granted by a\nContributor:\n\n(a) for any code that a Contributor has removed from Covered Software;\n    or\n\n(b) for infringements caused by: (i) Your and any other third party's\n    modifications of Covered Software, or (ii) the combination of its\n    Contributions with other software (except as part of its Contributor\n    Version); or\n\n(c) under Patent Claims infringed by Covered Software in the absence of\n    its Contributions.\n\nThis License does not grant any rights in the trademarks, service marks,\nor logos of any Contributor (except as may be necessary to comply with\nthe notice requirements in Section 3.4).\n\n2.4. Subsequent Licenses\n\nNo Contributor makes additional grants as a result of Your choice to\ndistribute the Covered Software under a subsequent version of this\nLicense (see Section 10.2) or under the terms of a Secondary License (if\npermitted under the terms of Section 3.3).\n\n2.5. Representation\n\nEach Contributor represents that the Contributor believes its\nContributions are its original creation(s) or it has sufficient rights\nto grant the rights to its Contributions conveyed by this License.\n\n2.6. Fair Use\n\nThis License is not intended to limit any rights You have under\napplicable copyright doctrines of fair use, fair dealing, or other\nequivalents.\n\n2.7. Conditions\n\nSections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted\nin Section 2.1.\n\n3. Responsibilities\n-------------------\n\n3.1. Distribution of Source Form\n\nAll distribution of Covered Software in Source Code Form, including any\nModifications that You create or to which You contribute, must be under\nthe terms of this License. You must inform recipients that the Source\nCode Form of the Covered Software is governed by the terms of this\nLicense, and how they can obtain a copy of this License. You may not\nattempt to alter or restrict the recipients' rights in the Source Code\nForm.\n\n3.2. Distribution of Executable Form\n\nIf You distribute Covered Software in Executable Form then:\n\n(a) such Covered Software must also be made available in Source Code\n    Form, as described in Section 3.1, and You must inform recipients of\n    the Executable Form how they can obtain a copy of such Source Code\n    Form by reasonable means in a timely manner, at a charge no more\n    than the cost of distribution to the recipient; and\n\n(b) You may distribute such Executable Form under the terms of this\n    License, or sublicense it under different terms, provided that the\n    license for the Executable Form does not attempt to limit or alter\n    the recipients' rights in the Source Code Form under this License.\n\n3.3. Distribution of a Larger Work\n\nYou may create and distribute a Larger Work under terms of Your choice,\nprovided that You also comply with the requirements of this License for\nthe Covered Software. If the Larger Work is a combination of Covered\nSoftware with a work governed by one or more Secondary Licenses, and the\nCovered Software is not Incompatible With Secondary Licenses, this\nLicense permits You to additionally distribute such Covered Software\nunder the terms of such Secondary License(s), so that the recipient of\nthe Larger Work may, at their option, further distribute the Covered\nSoftware under the terms of either this License or such Secondary\nLicense(s).\n\n3.4. Notices\n\nYou may not remove or alter the substance of any license notices\n(including copyright notices, patent notices, disclaimers of warranty,\nor limitations of liability) contained within the Source Code Form of\nthe Covered Software, except that You may alter any license notices to\nthe extent required to remedy known factual inaccuracies.\n\n3.5. Application of Additional Terms\n\nYou may choose to offer, and to charge a fee for, warranty, support,\nindemnity or liability obligations to one or more recipients of Covered\nSoftware. However, You may do so only on Your own behalf, and not on\nbehalf of any Contributor. You must make it absolutely clear that any\nsuch warranty, support, indemnity, or liability obligation is offered by\nYou alone, and You hereby agree to indemnify every Contributor for any\nliability incurred by such Contributor as a result of warranty, support,\nindemnity or liability terms You offer. You may include additional\ndisclaimers of warranty and limitations of liability specific to any\njurisdiction.\n\n4. Inability to Comply Due to Statute or Regulation\n---------------------------------------------------\n\nIf it is impossible for You to comply with any of the terms of this\nLicense with respect to some or all of the Covered Software due to\nstatute, judicial order, or regulation then You must: (a) comply with\nthe terms of this License to the maximum extent possible; and (b)\ndescribe the limitations and the code they affect. Such description must\nbe placed in a text file included with all distributions of the Covered\nSoftware under this License. Except to the extent prohibited by statute\nor regulation, such description must be sufficiently detailed for a\nrecipient of ordinary skill to be able to understand it.\n\n5. Termination\n--------------\n\n5.1. The rights granted under this License will terminate automatically\nif You fail to comply with any of its terms. However, if You become\ncompliant, then the rights granted under this License from a particular\nContributor are reinstated (a) provisionally, unless and until such\nContributor explicitly and finally terminates Your grants, and (b) on an\nongoing basis, if such Contributor fails to notify You of the\nnon-compliance by some reasonable means prior to 60 days after You have\ncome back into compliance. Moreover, Your grants from a particular\nContributor are reinstated on an ongoing basis if such Contributor\nnotifies You of the non-compliance by some reasonable means, this is the\nfirst time You have received notice of non-compliance with this License\nfrom such Contributor, and You become compliant prior to 30 days after\nYour receipt of the notice.\n\n5.2. If You initiate litigation against any entity by asserting a patent\ninfringement claim (excluding declaratory judgment actions,\ncounter-claims, and cross-claims) alleging that a Contributor Version\ndirectly or indirectly infringes any patent, then the rights granted to\nYou by any and all Contributors for the Covered Software under Section\n2.1 of this License shall terminate.\n\n5.3. In the event of termination under Sections 5.1 or 5.2 above, all\nend user license agreements (excluding distributors and resellers) which\nhave been validly granted by You or Your distributors under this License\nprior to termination shall survive termination.\n\n************************************************************************\n*                                                                      *\n*  6. Disclaimer of Warranty                                           *\n*  -------------------------                                           *\n*                                                                      *\n*  Covered Software is provided under this License on an \"as is\"       *\n*  basis, without warranty of any kind, either expressed, implied, or  *\n*  statutory, including, without limitation, warranties that the       *\n*  Covered Software is free of defects, merchantable, fit for a        *\n*  particular purpose or non-infringing. The entire risk as to the     *\n*  quality and performance of the Covered Software is with You.        *\n*  Should any Covered Software prove defective in any respect, You     *\n*  (not any Contributor) assume the cost of any necessary servicing,   *\n*  repair, or correction. This disclaimer of warranty constitutes an   *\n*  essential part of this License. No use of any Covered Software is   *\n*  authorized under this License except under this disclaimer.         *\n*                                                                      *\n************************************************************************\n\n************************************************************************\n*                                                                      *\n*  7. Limitation of Liability                                          *\n*  --------------------------                                          *\n*                                                                      *\n*  Under no circumstances and under no legal theory, whether tort      *\n*  (including negligence), contract, or otherwise, shall any           *\n*  Contributor, or anyone who distributes Covered Software as          *\n*  permitted above, be liable to You for any direct, indirect,         *\n*  special, incidental, or consequential damages of any character      *\n*  including, without limitation, damages for lost profits, loss of    *\n*  goodwill, work stoppage, computer failure or malfunction, or any    *\n*  and all other commercial damages or losses, even if such party      *\n*  shall have been informed of the possibility of such damages. This   *\n*  limitation of liability shall not apply to liability for death or   *\n*  personal injury resulting from such party's negligence to the       *\n*  extent applicable law prohibits such limitation. Some               *\n*  jurisdictions do not allow the exclusion or limitation of           *\n*  incidental or consequential damages, so this exclusion and          *\n*  limitation may not apply to You.                                    *\n*                                                                      *\n************************************************************************\n\n8. Litigation\n-------------\n\nAny litigation relating to this License may be brought only in the\ncourts of a jurisdiction where the defendant maintains its principal\nplace of business and such litigation shall be governed by laws of that\njurisdiction, without reference to its conflict-of-law provisions.\nNothing in this Section shall prevent a party's ability to bring\ncross-claims or counter-claims.\n\n9. Miscellaneous\n----------------\n\nThis License represents the complete agreement concerning the subject\nmatter hereof. If any provision of this License is held to be\nunenforceable, such provision shall be reformed only to the extent\nnecessary to make it enforceable. Any law or regulation which provides\nthat the language of a contract shall be construed against the drafter\nshall not be used to construe this License against a Contributor.\n\n10. Versions of the License\n---------------------------\n\n10.1. New Versions\n\nMozilla Foundation is the license steward. Except as provided in Section\n10.3, no one other than the license steward has the right to modify or\npublish new versions of this License. Each version will be given a\ndistinguishing version number.\n\n10.2. Effect of New Versions\n\nYou may distribute the Covered Software under the terms of the version\nof the License under which You originally received the Covered Software,\nor under the terms of any subsequent version published by the license\nsteward.\n\n10.3. Modified Versions\n\nIf you create software not governed by this License, and you want to\ncreate a new license for such software, you may create and use a\nmodified version of this License if you rename the license and remove\nany references to the name of the license steward (except to note that\nsuch modified license differs from this License).\n\n10.4. Distributing Source Code Form that is Incompatible With Secondary\nLicenses\n\nIf You choose to distribute Source Code Form that is Incompatible With\nSecondary Licenses under the terms of this version of the License, the\nnotice described in Exhibit B of this License must be attached.\n\nExhibit A - Source Code Form License Notice\n-------------------------------------------\n\n  This Source Code Form is subject to the terms of the Mozilla Public\n  License, v. 2.0. If a copy of the MPL was not distributed with this\n  file, You can obtain one at http://mozilla.org/MPL/2.0/.\n\nIf it is not possible or desirable to put the notice in a particular\nfile, then You may include the notice in a location (such as a LICENSE\nfile in a relevant directory) where a recipient would be likely to look\nfor such a notice.\n\nYou may add additional accurate notices of copyright ownership.\n\nExhibit B - \"Incompatible With Secondary Licenses\" Notice\n---------------------------------------------------------\n\n  This Source Code Form is \"Incompatible With Secondary Licenses\", as\n  defined by the Mozilla Public License, v. 2.0.\n"
  },
  {
    "path": "Makefile",
    "content": "build:\n\t@brew bundle --no-upgrade\n\t@carthage bootstrap --cache-builds --platform osx\n\t@mkdir -p Dozer/Other/Generated\n\t@swiftgen\n\t@xcodegen \n\t@xed \".\"\n\nrelease:\n\t@echo \"Running Fastlane deploy\"\n\t@bundle exec fastlane release\n\n.PHONY: build release \n"
  },
  {
    "path": "README.md",
    "content": "<p align=\"center\">\n\t<img width=\"200\" height=\"200\" margin-right=\"100%\" src=\"https://raw.githubusercontent.com/Mortennn/Dozer/master/Stuff/AppIcon.png\">\n</p>\n<p align=\"center\">Hide menu bar icons to give your Mac a cleaner look.</p>\n<p align=\"center\">\n\t<a href=\"https://github.com/Mortennn/Dozer/releases/latest\">\n \t\t<img src=\"https://img.shields.io/badge/download-latest-brightgreen.svg\" alt=\"download\">\n\t<a href=\"https://img.shields.io/badge/platform-macOS-lightgrey.svg\">\n \t\t<img src=\"https://img.shields.io/badge/platform-macOS-lightgrey.svg\" alt=\"platform\">\n\t</a>\n\t<a href=\"https://img.shields.io/badge/requirements-macOS High Sierra+-ff69b4.svg\">\n \t\t<img src=\"https://img.shields.io/badge/requirements-macOS High Sierra+-lightgrey.svg\" alt=\"systemrequirements\">\n\t</a>\n\t<a href=\"https://github.com/sindresorhus/swiftlint-sindre\">\n \t\t<img src=\"https://img.shields.io/badge/SwiftLint-Sindre-hotpink.svg\" alt=\"swiftlint\">\n\t</a>\n\t<a href=\"https://opensource.org/licenses/MPL-2.0\">\n \t\t<img src=\"https://img.shields.io/badge/License-MPL%202.0-orange.svg\" alt=\"license\">\n\t</a>\n</p>\n<p align=\"center\">\n\t<img height=\"100\" min-width=\"100\" src=\"https://github.com/Mortennn/Dozer/raw/master/Stuff/demo.gif\" alt=\"demo\">\n</p>\n\n<p align=\"center\"></p>\n<a href=\"https://www.buymeacoffee.com/mortennn\" target=\"_blank\"><img src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;\" ></a>\n\n## ⚙️ Install\nUsing [Homebrew Cask](https://formulae.brew.sh/cask/dozer):\n```shell\nbrew install --cask dozer\n```\n\nManual:\n\n[Download](https://github.com/Mortennn/Dozer/releases/latest), open and drag the app to the Applications folder.\n\n## ⚫️ Dozer Icons\n\nThere are 2 or 3, numbered from right to left:\n\n1. this can be positioned anywhere you prefer, it is only a point of interaction\n2. this and everything to its left will be hidden/shown by clicking any Dozer icon\n3. (Optional) the \"remove\" icon and everything to its left will be hidden/shown by option-clicking any Dozer icon\n\n## 👨‍💻 Usage\n\n* Move the icons you want to hide until clicked to the left of the second Dozer icon\n* Move the icons you want to hide until option-clicked to the left of the third Dozer icon\n\n**N.B. hold command (`⌘`) then drag to move the menu bar icons.**\n\n## 👇 Interactions\n* Left-click one of the Dozer icons to hide/show the first group of menu bar icons\n* Option-Left-click one of the Dozer icons to show the second group of menu bar icons (optional)\n* Right-click one of the Dozer icons to open the settings\n\n<!-- GIF is commented out until it is redone -->\n<!-- **Checkout [this GIF](https://raw.githubusercontent.com/Mortennn/Dozer/master/Stuff/demo.gif) to watch Dozer in action.** -->\n\n## 📄 Requirements\nmacOS 10.13+\n"
  },
  {
    "path": "Scripts/LaunchAtLogin.sh",
    "content": "./Carthage/Build/Mac/LaunchAtLogin.framework/Resources/copy-helper.sh\n"
  },
  {
    "path": "Scripts/SignFrameworks.sh",
    "content": "LOCATION=\"${BUILT_PRODUCTS_DIR}\"/\"${FRAMEWORKS_FOLDER_PATH}\"\n\n# By default, use the configured code signing identity for the project/target\nIDENTITY=\"${CODE_SIGN_IDENTITY}\"\nif [ \"$IDENTITY\" == \"\" ]\nthen\n    # If a code signing identity is not specified, use ad hoc signing\n    IDENTITY=\"-\"\nfi\ncodesign --verbose --force --deep -o runtime --sign \"$IDENTITY\" \"$LOCATION/Sparkle.framework/Versions/A/Resources/AutoUpdate.app\"\ncodesign --verbose --force -o runtime --sign \"$IDENTITY\" \"$LOCATION/Sparkle.framework/Versions/A\"\n"
  },
  {
    "path": "Scripts/Swiftlint.sh",
    "content": "if which swiftlint >/dev/null; then\n  swiftlint\nelse\n  echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n"
  },
  {
    "path": "Stuff/OldFiles/AnimationWindow.swift",
    "content": "import Cocoa\n\nfinal class AnimationWindow: NSPanel {\n    convenience init(frame: NSRect) {\n        self.init(contentRect: frame, styleMask: .nonactivatingPanel, backing: .buffered, defer: false)\n        self.isOpaque = false\n        self.hasShadow = true\n        self.titlebarAppearsTransparent = true\n        self.titleVisibility = .hidden\n        self.level = .init(26)\n        self.collectionBehavior = [.canJoinAllSpaces, .fullScreenNone]\n        self.backgroundColor = NSColor(calibratedRed: 0.13, green: 0.13, blue: 0.12, alpha: 1)\n        self.ignoresMouseEvents = false\n    }\n\n    func animate() {\n        self.alphaValue = 1\n        self.makeKeyAndOrderFront(nil)\n        NSAnimationContext.runAnimationGroup({ context in\n            context.duration = TimeInterval(0.25)\n            self.animator().alphaValue = 0\n        }, completionHandler: nil)\n    }\n}\n"
  },
  {
    "path": "Stuff/OldFiles/ClickedWindowInfo.swift",
    "content": "// This can be used when detecting clicks on status bar\nextension NSEvent {\n    var clickedWindowInfo: [String: AnyObject]? {\n        let type = CGWindowListOption.optionOnScreenOnly\n        let windowList = CGWindowListCopyWindowInfo(type, kCGNullWindowID) as NSArray? as? [[String: AnyObject]]\n\n        for entry in windowList! {\n            guard let windowNumber = entry[kCGWindowNumber as String] as? Int else { continue }\n            if windowNumber == self.windowNumber {\n                return entry\n            }\n        }\n        return nil\n    }\n}\n"
  },
  {
    "path": "Stuff/OldFiles/CreateAnimation.swift",
    "content": "private func createAnimation() {\n    let normalStatusIconRightX = Int(DozerStatusIconController.shared.get(dozerIcon: .normalRight).xPositionOnScreen)\n    let leftStatusIconPosition = getLeftStatusIcon()\n    let frame = NSRect(\n        x: leftStatusIconPosition,\n        y: Int(NSScreen.main!.frame.height - 22),\n        width: normalStatusIconRightX - leftStatusIconPosition,\n        height: 22)\n    let animationWindow = AnimationWindow(frame: frame)\n    animationWindow.orderFront(nil)\n    animationWindow.animate()\n}\n"
  },
  {
    "path": "Stuff/OldFiles/GetLeftStatusIcon.swift",
    "content": "import Cocoa\n\n#warning(\"possible bug: this should only return the visible icons positions\")\nfunc getLeftStatusIcon() -> Int {\n    guard let windowInfoList = CGWindowListCopyWindowInfo(CGWindowListOption.optionOnScreenOnly, kCGNullWindowID) as NSArray? as? [[String: AnyObject]] else {\n        print(\"Failed getting the left status icon\")\n        return 0\n    }\n\n    var statusBarIconX: [Int] = []\n\n    // collect all status bar icons x positions\n    for windowInfo in windowInfoList {\n        guard let window = Window(windowInfo) else { continue }\n        guard window.isStatusIcon else { continue }\n        statusBarIconX.append(window.x)\n    }\n\n    // find the smallest x position\n    guard let minX = statusBarIconX.min() else {\n        print(\"Failed getting the smallest x position\")\n        return 0\n    }\n    return minX\n}\n"
  },
  {
    "path": "Stuff/OldFiles/Screen.swift",
    "content": "import Cocoa\n\nextension NSScreen {\n    /// Takes a window point an outputs the screen the window is located on\n    ///\n    /// - Parameter point: Window point\n    /// - Returns: The screen the window is located on\n    class func currentScreenForPointLocation(point: NSPoint) -> NSScreen? {\n        for screen in NSScreen.screens {\n            if NSMouseInRect(point, screen.frame, false) {\n                return screen\n            }\n        }\n        return nil\n    }\n\n    /// Converts global point to point relative to screen\n    ///\n    /// - Parameter aPoint: window point\n    /// - Returns: window point relative to screen\n    func convertPoint(toScreenCoordinates aPoint: NSPoint) -> NSPoint {\n        let normalizedX: CGFloat = abs(abs(frame.origin.x) - abs(aPoint.x))\n        let normalizedY: CGFloat = aPoint.y - frame.origin.y\n\n        return NSPoint(x: normalizedX, y: normalizedY)\n    }\n\n    func flip(_ aPoint: NSPoint) -> NSPoint {\n        return NSPoint(x: aPoint.x, y: frame.size.height - aPoint.y)\n    }\n}\n\n// ORIGINAL\n// extension NSScreen {\n//    class func currentScreenForMouseLocation() -> NSScreen? {\n//        let mouseLocation: NSPoint = NSEvent.mouseLocation\n//\n//        let screenEnumerator: NSEnumerator = (NSScreen.screens as NSArray).objectEnumerator()\n//        var screen: NSScreen?\n//        while (screen = screenEnumerator.nextObject() as? NSScreen) != nil, !NSMouseInRect(mouseLocation, screen!.frame, false) {}\n//\n//        return screen\n//    }\n//\n//    func convertPoint(toScreenCoordinates aPoint: NSPoint) -> NSPoint {\n//        let normalizedX: CGFloat = abs(abs(frame.origin.x) - abs(aPoint.x))\n//        let normalizedY: CGFloat = aPoint.y - frame.origin.y\n//\n//        return NSPoint(x: normalizedX, y: normalizedY)\n//    }\n//\n//    func flip(_ aPoint: NSPoint) -> NSPoint {\n//        return NSPoint(x: aPoint.x, y: frame.size.height - aPoint.y)\n//    }\n// }\n"
  },
  {
    "path": "appcast.xml",
    "content": "<?xml version=\"1.0\" standalone=\"yes\"?><rss xmlns:sparkle=\"http://www.andymatuschak.org/xml-namespaces/sparkle\" version=\"2.0\">\n<channel>\n<title>Dozer</title>\n<item>\n<title>4.0.0</title>\n<description><![CDATA[<h2>New features in version 4:</h2><ul><li>”Remove”-icon. Additional icon to hide/show icons with `option+click`</li><li>Auto-hide status bar icons #22</li><li>”No Icon”-mode. Hide/show only using keyboard shortcut</li></ul><h2>Other:</h2><ul><li>Improved UI in preferences</li></ul><ul>]]></description>\n<pubDate>Tue, 20 Aug 2019 13:01:53 +0200</pubDate>\n<sparkle:minimumSystemVersion>10.13</sparkle:minimumSystemVersion>\n<enclosure url=\"https://github.com/Mortennn/Dozer/releases/download/v4.0.0/Dozer.4.0.0.dmg\" sparkle:version=\"27\" sparkle:shortVersionString=\"4.0.0\" length=\"8081734\" type=\"application/octet-stream\" sparkle:edSignature=\"CFXdt4FjQxevj6FfjDlpXQyHV7rYm8RGBRV8uw+nE6EulKvt04rLb8VBwjywG5GgqooXW78y073hO079KGkhAQ==\"/>\n</item>\n</channel></rss>"
  },
  {
    "path": "project.yml",
    "content": "name: Dozer\noptions:\n  usesTabs: false\n  tabWidth: 4\n  createIntermediateGroups: true\n  xcodeVersion: 10.2.1\n  deploymentTarget: 10.13\ntargets:\n  Dozer:\n    type: application\n    platform: macOS\n    deploymentTarget: \n      macOS: 10.13\n    configFiles:\n      Debug: Configs/Debug.xcconfig\n      Release: Configs/Release.xcconfig\n    sources:\n      - Dozer\n    postBuildScripts:\n      - path: Scripts/LaunchAtLogin.sh\n        name: Launch At Login\n        runOnlyWhenInstalling: true\n      - path: Scripts/SignFrameworks.sh\n        name: Sign Frameworks\n        runOnlyWhenInstalling: true\n        runOnlyWhenInstalling: true\n      - script: /usr/local/bin/swiftgen\n        name: Generate files using SwiftGen\n      - path: Scripts/Swiftlint.sh\n        name: Swiftlint\n    settings:\n      base:\n        CODE_SIGN_ENTITLEMENTS: Dozer/Other/Dozer.entitlements\n        PRODUCT_BUNDLE_IDENTIFIER: \"com.mortennn.Dozer\"\n        SWIFT_VERSION: 5\n        DEBUG_INFORMATION_FORMAT: \"dwarf-with-dsym\"\n        ENABLE_HARDENED_RUNTIME: true\n        MACOSX_DEPLOYMENT_TARGET: 10.13\n        VERSIONING_SYSTEM: apple-generic\n        CURRENT_PROJECT_VERSION: 30\n    dependencies:\n      - carthage: LaunchAtLogin\n      - carthage: Defaults\n      - carthage: Preferences\n      - carthage: MASShortcut\n      - carthage: Sparkle\nschemes:\n  Dozer:\n    build:\n      targets:\n        Dozer: all"
  },
  {
    "path": "swiftgen.yml",
    "content": "input_dir: Dozer/Other/\noutput_dir: Dozer/Other/Generated/\nxcassets:\n  inputs:\n    Assets.xcassets\n  outputs:\n    - templateName: swift4\n      output: Assets.swift\n      params:\n        enumName: Assets\n"
  }
]