diff --git a/.DS_Store b/.DS_Store index bdc6904..6b6fbfc 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/App/.DS_Store b/App/.DS_Store new file mode 100644 index 0000000..aeb136f Binary files /dev/null and b/App/.DS_Store differ diff --git a/DarkLight Menu Bar.xcodeproj/project.pbxproj b/App/DarkLight Menu Bar.xcodeproj/project.pbxproj similarity index 96% rename from DarkLight Menu Bar.xcodeproj/project.pbxproj rename to App/DarkLight Menu Bar.xcodeproj/project.pbxproj index 7b826cb..a0484c7 100644 --- a/DarkLight Menu Bar.xcodeproj/project.pbxproj +++ b/App/DarkLight Menu Bar.xcodeproj/project.pbxproj @@ -12,7 +12,6 @@ 4FD5569B2482F5E600A6BD68 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4FD5569A2482F5E600A6BD68 /* ViewController.swift */; }; 4FD5569D2482F5E700A6BD68 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4FD5569C2482F5E700A6BD68 /* Assets.xcassets */; }; 4FD556A02482F5E700A6BD68 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4FD5569E2482F5E700A6BD68 /* Main.storyboard */; }; - 4FD556C52482F67F00A6BD68 /* script.workflow in Resources */ = {isa = PBXBuildFile; fileRef = 4FD556C42482F67F00A6BD68 /* script.workflow */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -24,7 +23,6 @@ 4FD5569F2482F5E700A6BD68 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 4FD556A12482F5E700A6BD68 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 4FD556A22482F5E700A6BD68 /* DarkLight_Menu_Bar.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DarkLight_Menu_Bar.entitlements; sourceTree = ""; }; - 4FD556C42482F67F00A6BD68 /* script.workflow */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = script.workflow; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -57,7 +55,6 @@ 4FD556972482F5E600A6BD68 /* DarkLight Menu Bar */ = { isa = PBXGroup; children = ( - 4FD556C42482F67F00A6BD68 /* script.workflow */, 4FD556982482F5E600A6BD68 /* AppDelegate.swift */, 4FD5569A2482F5E600A6BD68 /* ViewController.swift */, 4FD5569C2482F5E700A6BD68 /* Assets.xcassets */, @@ -127,7 +124,6 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 4FD556C52482F67F00A6BD68 /* script.workflow in Resources */, 4FD5569D2482F5E700A6BD68 /* Assets.xcassets in Resources */, 4F1411932483A31900029595 /* About.storyboard in Resources */, 4FD556A02482F5E700A6BD68 /* Main.storyboard in Resources */, diff --git a/DarkLight Menu Bar.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/App/DarkLight Menu Bar.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from DarkLight Menu Bar.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to App/DarkLight Menu Bar.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/DarkLight Menu Bar.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/App/DarkLight Menu Bar.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from DarkLight Menu Bar.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to App/DarkLight Menu Bar.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/App/DarkLight Menu Bar.xcodeproj/project.xcworkspace/xcuserdata/noah.xcuserdatad/UserInterfaceState.xcuserstate b/App/DarkLight Menu Bar.xcodeproj/project.xcworkspace/xcuserdata/noah.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..7e23480 Binary files /dev/null and b/App/DarkLight Menu Bar.xcodeproj/project.xcworkspace/xcuserdata/noah.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/App/DarkLight Menu Bar.xcodeproj/xcshareddata/xcschemes/DarkLight Menu Bar Helper Tool.xcscheme b/App/DarkLight Menu Bar.xcodeproj/xcshareddata/xcschemes/DarkLight Menu Bar Helper Tool.xcscheme new file mode 100644 index 0000000..581a825 --- /dev/null +++ b/App/DarkLight Menu Bar.xcodeproj/xcshareddata/xcschemes/DarkLight Menu Bar Helper Tool.xcscheme @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/App/DarkLight Menu Bar.xcodeproj/xcshareddata/xcschemes/DarkLight Menu Bar.xcscheme b/App/DarkLight Menu Bar.xcodeproj/xcshareddata/xcschemes/DarkLight Menu Bar.xcscheme new file mode 100644 index 0000000..974a712 --- /dev/null +++ b/App/DarkLight Menu Bar.xcodeproj/xcshareddata/xcschemes/DarkLight Menu Bar.xcscheme @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/DarkLight Menu Bar.xcodeproj/xcuserdata/noah.xcuserdatad/xcschemes/xcschememanagement.plist b/App/DarkLight Menu Bar.xcodeproj/xcuserdata/noah.xcuserdatad/xcschemes/xcschememanagement.plist similarity index 63% rename from DarkLight Menu Bar.xcodeproj/xcuserdata/noah.xcuserdatad/xcschemes/xcschememanagement.plist rename to App/DarkLight Menu Bar.xcodeproj/xcuserdata/noah.xcuserdatad/xcschemes/xcschememanagement.plist index 569946b..5914d1d 100644 --- a/DarkLight Menu Bar.xcodeproj/xcuserdata/noah.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/App/DarkLight Menu Bar.xcodeproj/xcuserdata/noah.xcuserdatad/xcschemes/xcschememanagement.plist @@ -4,6 +4,11 @@ SchemeUserState + DarkLight Menu Bar Helper Tool.xcscheme_^#shared#^_ + + orderHint + 1 + DarkLight Menu Bar Launcher.xcscheme_^#shared#^_ orderHint @@ -15,5 +20,13 @@ 0 + SuppressBuildableAutocreation + + 4FD556942482F5E600A6BD68 + + primary + + + diff --git a/App/DarkLight Menu Bar/.DS_Store b/App/DarkLight Menu Bar/.DS_Store new file mode 100644 index 0000000..842e5c9 Binary files /dev/null and b/App/DarkLight Menu Bar/.DS_Store differ diff --git a/DarkLight Menu Bar/About.storyboard b/App/DarkLight Menu Bar/About.storyboard similarity index 100% rename from DarkLight Menu Bar/About.storyboard rename to App/DarkLight Menu Bar/About.storyboard diff --git a/DarkLight Menu Bar/AppDelegate.swift b/App/DarkLight Menu Bar/AppDelegate.swift similarity index 66% rename from DarkLight Menu Bar/AppDelegate.swift rename to App/DarkLight Menu Bar/AppDelegate.swift index ebf6607..d8ac796 100644 --- a/DarkLight Menu Bar/AppDelegate.swift +++ b/App/DarkLight Menu Bar/AppDelegate.swift @@ -8,6 +8,7 @@ import Cocoa import Automator +import Foundation @NSApplicationMain class AppDelegate: NSObject, NSApplicationDelegate { @@ -50,23 +51,11 @@ class AppDelegate: NSObject, NSApplicationDelegate { } @objc func switchTheme() { - guard let workflowPath = Bundle.main.path(forResource: "script", ofType: "workflow") else { - print("Workflow resource not found") - let alert = NSAlert() - alert.alertStyle = .critical - alert.messageText = "There was an issue changing the system theme." - alert.informativeText = "Please reinstall the application." - alert.runModal() - return - } + NSWorkspace.shared.open(URL(fileURLWithPath: "/Library/Application Support/VelocityApps.DarkLight-Menu-Bar/DarkLight Menu Bar Helper Tool.app")) - let workflowURL = URL(fileURLWithPath: workflowPath) - do { - try AMWorkflow.run(at:workflowURL, withInput: nil) - } catch { - print("Error running workflow: \(error)") - } + } + func applicationWillTerminate(_ aNotification: Notification) { // Insert code here to tear down your application diff --git a/App/DarkLight Menu Bar/Assets.xcassets/.DS_Store b/App/DarkLight Menu Bar/Assets.xcassets/.DS_Store new file mode 100644 index 0000000..92243f1 Binary files /dev/null and b/App/DarkLight Menu Bar/Assets.xcassets/.DS_Store differ diff --git a/DarkLight Menu Bar/Assets.xcassets/AppIcon.appiconset/1616.png b/App/DarkLight Menu Bar/Assets.xcassets/AppIcon.appiconset/1616.png similarity index 100% rename from DarkLight Menu Bar/Assets.xcassets/AppIcon.appiconset/1616.png rename to App/DarkLight Menu Bar/Assets.xcassets/AppIcon.appiconset/1616.png diff --git a/DarkLight Menu Bar/Assets.xcassets/AppIcon.appiconset/3232-1.png b/App/DarkLight Menu Bar/Assets.xcassets/AppIcon.appiconset/3232-1.png similarity index 100% rename from DarkLight Menu Bar/Assets.xcassets/AppIcon.appiconset/3232-1.png rename to App/DarkLight Menu Bar/Assets.xcassets/AppIcon.appiconset/3232-1.png diff --git a/DarkLight Menu Bar/Assets.xcassets/AppIcon.appiconset/3232.png b/App/DarkLight Menu Bar/Assets.xcassets/AppIcon.appiconset/3232.png similarity index 100% rename from DarkLight Menu Bar/Assets.xcassets/AppIcon.appiconset/3232.png rename to App/DarkLight Menu Bar/Assets.xcassets/AppIcon.appiconset/3232.png diff --git a/DarkLight Menu Bar/Assets.xcassets/AppIcon.appiconset/6464.png b/App/DarkLight Menu Bar/Assets.xcassets/AppIcon.appiconset/6464.png similarity index 100% rename from DarkLight Menu Bar/Assets.xcassets/AppIcon.appiconset/6464.png rename to App/DarkLight Menu Bar/Assets.xcassets/AppIcon.appiconset/6464.png diff --git a/DarkLight Menu Bar/Assets.xcassets/AppIcon.appiconset/Contents.json b/App/DarkLight Menu Bar/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from DarkLight Menu Bar/Assets.xcassets/AppIcon.appiconset/Contents.json rename to App/DarkLight Menu Bar/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/DarkLight Menu Bar/Assets.xcassets/Contents.json b/App/DarkLight Menu Bar/Assets.xcassets/Contents.json similarity index 100% rename from DarkLight Menu Bar/Assets.xcassets/Contents.json rename to App/DarkLight Menu Bar/Assets.xcassets/Contents.json diff --git a/DarkLight Menu Bar/Assets.xcassets/barIcon.imageset/1818.png b/App/DarkLight Menu Bar/Assets.xcassets/barIcon.imageset/1818.png similarity index 100% rename from DarkLight Menu Bar/Assets.xcassets/barIcon.imageset/1818.png rename to App/DarkLight Menu Bar/Assets.xcassets/barIcon.imageset/1818.png diff --git a/DarkLight Menu Bar/Assets.xcassets/barIcon.imageset/3636.png b/App/DarkLight Menu Bar/Assets.xcassets/barIcon.imageset/3636.png similarity index 100% rename from DarkLight Menu Bar/Assets.xcassets/barIcon.imageset/3636.png rename to App/DarkLight Menu Bar/Assets.xcassets/barIcon.imageset/3636.png diff --git a/DarkLight Menu Bar/Assets.xcassets/barIcon.imageset/Contents.json b/App/DarkLight Menu Bar/Assets.xcassets/barIcon.imageset/Contents.json similarity index 100% rename from DarkLight Menu Bar/Assets.xcassets/barIcon.imageset/Contents.json rename to App/DarkLight Menu Bar/Assets.xcassets/barIcon.imageset/Contents.json diff --git a/DarkLight Menu Bar/Assets.xcassets/velocityGlyph.imageset/Contents.json b/App/DarkLight Menu Bar/Assets.xcassets/velocityGlyph.imageset/Contents.json similarity index 100% rename from DarkLight Menu Bar/Assets.xcassets/velocityGlyph.imageset/Contents.json rename to App/DarkLight Menu Bar/Assets.xcassets/velocityGlyph.imageset/Contents.json diff --git a/DarkLight Menu Bar/Assets.xcassets/velocityGlyph.imageset/Glyph Black Transparent@1x.png b/App/DarkLight Menu Bar/Assets.xcassets/velocityGlyph.imageset/Glyph Black Transparent@1x.png similarity index 100% rename from DarkLight Menu Bar/Assets.xcassets/velocityGlyph.imageset/Glyph Black Transparent@1x.png rename to App/DarkLight Menu Bar/Assets.xcassets/velocityGlyph.imageset/Glyph Black Transparent@1x.png diff --git a/DarkLight Menu Bar/Assets.xcassets/velocityGlyph.imageset/Glyph Black Transparent@2x.png b/App/DarkLight Menu Bar/Assets.xcassets/velocityGlyph.imageset/Glyph Black Transparent@2x.png similarity index 100% rename from DarkLight Menu Bar/Assets.xcassets/velocityGlyph.imageset/Glyph Black Transparent@2x.png rename to App/DarkLight Menu Bar/Assets.xcassets/velocityGlyph.imageset/Glyph Black Transparent@2x.png diff --git a/DarkLight Menu Bar/Assets.xcassets/velocityGlyph.imageset/Glyph Black Transparent@3x.png b/App/DarkLight Menu Bar/Assets.xcassets/velocityGlyph.imageset/Glyph Black Transparent@3x.png similarity index 100% rename from DarkLight Menu Bar/Assets.xcassets/velocityGlyph.imageset/Glyph Black Transparent@3x.png rename to App/DarkLight Menu Bar/Assets.xcassets/velocityGlyph.imageset/Glyph Black Transparent@3x.png diff --git a/DarkLight Menu Bar/Base.lproj/Main.storyboard b/App/DarkLight Menu Bar/Base.lproj/Main.storyboard similarity index 100% rename from DarkLight Menu Bar/Base.lproj/Main.storyboard rename to App/DarkLight Menu Bar/Base.lproj/Main.storyboard diff --git a/App/DarkLight Menu Bar/DarkLight_Menu_Bar.entitlements b/App/DarkLight Menu Bar/DarkLight_Menu_Bar.entitlements new file mode 100644 index 0000000..852fa1a --- /dev/null +++ b/App/DarkLight Menu Bar/DarkLight_Menu_Bar.entitlements @@ -0,0 +1,8 @@ + + + + + com.apple.security.app-sandbox + + + diff --git a/DarkLight Menu Bar/Info.plist b/App/DarkLight Menu Bar/Info.plist similarity index 100% rename from DarkLight Menu Bar/Info.plist rename to App/DarkLight Menu Bar/Info.plist diff --git a/DarkLight Menu Bar/ViewController.swift b/App/DarkLight Menu Bar/ViewController.swift similarity index 85% rename from DarkLight Menu Bar/ViewController.swift rename to App/DarkLight Menu Bar/ViewController.swift index 4698a2c..2d72fc4 100644 --- a/DarkLight Menu Bar/ViewController.swift +++ b/App/DarkLight Menu Bar/ViewController.swift @@ -18,8 +18,6 @@ class ViewController: NSViewController { override var representedObject: Any? { didSet { - print("test") - // Update the view, if already loaded. } } diff --git a/DarkLight Menu Bar.xcodeproj/project.xcworkspace/xcuserdata/noah.xcuserdatad/UserInterfaceState.xcuserstate b/DarkLight Menu Bar.xcodeproj/project.xcworkspace/xcuserdata/noah.xcuserdatad/UserInterfaceState.xcuserstate deleted file mode 100644 index 7d953c6..0000000 Binary files a/DarkLight Menu Bar.xcodeproj/project.xcworkspace/xcuserdata/noah.xcuserdatad/UserInterfaceState.xcuserstate and /dev/null differ diff --git a/Helper/.DS_Store b/Helper/.DS_Store new file mode 100644 index 0000000..b45c15b Binary files /dev/null and b/Helper/.DS_Store differ diff --git a/Helper/DarkLight Menu Bar Helper Tool.xcodeproj/project.pbxproj b/Helper/DarkLight Menu Bar Helper Tool.xcodeproj/project.pbxproj new file mode 100644 index 0000000..99a235d --- /dev/null +++ b/Helper/DarkLight Menu Bar Helper Tool.xcodeproj/project.pbxproj @@ -0,0 +1,336 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + 4F4D801F248509DD00E5FE53 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F4D801E248509DD00E5FE53 /* AppDelegate.swift */; }; + 4F4D8021248509DD00E5FE53 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4F4D8020248509DD00E5FE53 /* ViewController.swift */; }; + 4F4D8026248509DF00E5FE53 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4F4D8024248509DF00E5FE53 /* Main.storyboard */; }; + 4F4D802F24850A6700E5FE53 /* script.workflow in Resources */ = {isa = PBXBuildFile; fileRef = 4F4D802E24850A6700E5FE53 /* script.workflow */; }; + 4FED0AB124851189005D0F8C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4FED0AB024851189005D0F8C /* Assets.xcassets */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 4F4D801B248509DD00E5FE53 /* DarkLight Menu Bar Helper Tool.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "DarkLight Menu Bar Helper Tool.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 4F4D801E248509DD00E5FE53 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 4F4D8020248509DD00E5FE53 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 4F4D8025248509DF00E5FE53 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 4F4D8027248509DF00E5FE53 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 4F4D8028248509DF00E5FE53 /* DarkLight_Menu_Bar_Helper_Tool.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DarkLight_Menu_Bar_Helper_Tool.entitlements; sourceTree = ""; }; + 4F4D802E24850A6700E5FE53 /* script.workflow */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = script.workflow; sourceTree = ""; }; + 4FED0AB024851189005D0F8C /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 4F4D8018248509DD00E5FE53 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 4F4D8012248509DC00E5FE53 = { + isa = PBXGroup; + children = ( + 4F4D801D248509DD00E5FE53 /* DarkLight Menu Bar Helper Tool */, + 4F4D801C248509DD00E5FE53 /* Products */, + ); + sourceTree = ""; + }; + 4F4D801C248509DD00E5FE53 /* Products */ = { + isa = PBXGroup; + children = ( + 4F4D801B248509DD00E5FE53 /* DarkLight Menu Bar Helper Tool.app */, + ); + name = Products; + sourceTree = ""; + }; + 4F4D801D248509DD00E5FE53 /* DarkLight Menu Bar Helper Tool */ = { + isa = PBXGroup; + children = ( + 4FED0AB024851189005D0F8C /* Assets.xcassets */, + 4F4D802E24850A6700E5FE53 /* script.workflow */, + 4F4D801E248509DD00E5FE53 /* AppDelegate.swift */, + 4F4D8020248509DD00E5FE53 /* ViewController.swift */, + 4F4D8024248509DF00E5FE53 /* Main.storyboard */, + 4F4D8027248509DF00E5FE53 /* Info.plist */, + 4F4D8028248509DF00E5FE53 /* DarkLight_Menu_Bar_Helper_Tool.entitlements */, + ); + path = "DarkLight Menu Bar Helper Tool"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 4F4D801A248509DD00E5FE53 /* DarkLight Menu Bar Helper Tool */ = { + isa = PBXNativeTarget; + buildConfigurationList = 4F4D802B248509DF00E5FE53 /* Build configuration list for PBXNativeTarget "DarkLight Menu Bar Helper Tool" */; + buildPhases = ( + 4F4D8017248509DD00E5FE53 /* Sources */, + 4F4D8018248509DD00E5FE53 /* Frameworks */, + 4F4D8019248509DD00E5FE53 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "DarkLight Menu Bar Helper Tool"; + productName = "DarkLight Menu Bar Helper Tool"; + productReference = 4F4D801B248509DD00E5FE53 /* DarkLight Menu Bar Helper Tool.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 4F4D8013248509DC00E5FE53 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1150; + LastUpgradeCheck = 1150; + ORGANIZATIONNAME = "Noah Evans"; + TargetAttributes = { + 4F4D801A248509DD00E5FE53 = { + CreatedOnToolsVersion = 11.5; + }; + }; + }; + buildConfigurationList = 4F4D8016248509DC00E5FE53 /* Build configuration list for PBXProject "DarkLight Menu Bar Helper Tool" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 4F4D8012248509DC00E5FE53; + productRefGroup = 4F4D801C248509DD00E5FE53 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 4F4D801A248509DD00E5FE53 /* DarkLight Menu Bar Helper Tool */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 4F4D8019248509DD00E5FE53 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4F4D802F24850A6700E5FE53 /* script.workflow in Resources */, + 4FED0AB124851189005D0F8C /* Assets.xcassets in Resources */, + 4F4D8026248509DF00E5FE53 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 4F4D8017248509DD00E5FE53 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4F4D8021248509DD00E5FE53 /* ViewController.swift in Sources */, + 4F4D801F248509DD00E5FE53 /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 4F4D8024248509DF00E5FE53 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 4F4D8025248509DF00E5FE53 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 4F4D8029248509DF00E5FE53 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.15; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 4F4D802A248509DF00E5FE53 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.15; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Release; + }; + 4F4D802C248509DF00E5FE53 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = "DarkLight Menu Bar Helper Tool/DarkLight_Menu_Bar_Helper_Tool.entitlements"; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + DEVELOPMENT_TEAM = TAZG5QA452; + ENABLE_HARDENED_RUNTIME = YES; + INFOPLIST_FILE = "DarkLight Menu Bar Helper Tool/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "VelocityApps.DarkLight-Menu-Bar-Helper-Tool"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 4F4D802D248509DF00E5FE53 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = "DarkLight Menu Bar Helper Tool/DarkLight_Menu_Bar_Helper_Tool.entitlements"; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + DEVELOPMENT_TEAM = TAZG5QA452; + ENABLE_HARDENED_RUNTIME = YES; + INFOPLIST_FILE = "DarkLight Menu Bar Helper Tool/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = "VelocityApps.DarkLight-Menu-Bar-Helper-Tool"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 4F4D8016248509DC00E5FE53 /* Build configuration list for PBXProject "DarkLight Menu Bar Helper Tool" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4F4D8029248509DF00E5FE53 /* Debug */, + 4F4D802A248509DF00E5FE53 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 4F4D802B248509DF00E5FE53 /* Build configuration list for PBXNativeTarget "DarkLight Menu Bar Helper Tool" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4F4D802C248509DF00E5FE53 /* Debug */, + 4F4D802D248509DF00E5FE53 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 4F4D8013248509DC00E5FE53 /* Project object */; +} diff --git a/Helper/DarkLight Menu Bar Helper Tool.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Helper/DarkLight Menu Bar Helper Tool.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..cd82ec8 --- /dev/null +++ b/Helper/DarkLight Menu Bar Helper Tool.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Helper/DarkLight Menu Bar Helper Tool.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Helper/DarkLight Menu Bar Helper Tool.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Helper/DarkLight Menu Bar Helper Tool.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Helper/DarkLight Menu Bar Helper Tool.xcodeproj/project.xcworkspace/xcuserdata/noah.xcuserdatad/UserInterfaceState.xcuserstate b/Helper/DarkLight Menu Bar Helper Tool.xcodeproj/project.xcworkspace/xcuserdata/noah.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..d31f7e3 Binary files /dev/null and b/Helper/DarkLight Menu Bar Helper Tool.xcodeproj/project.xcworkspace/xcuserdata/noah.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Helper/DarkLight Menu Bar Helper Tool.xcodeproj/xcuserdata/noah.xcuserdatad/xcschemes/xcschememanagement.plist b/Helper/DarkLight Menu Bar Helper Tool.xcodeproj/xcuserdata/noah.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..82ced60 --- /dev/null +++ b/Helper/DarkLight Menu Bar Helper Tool.xcodeproj/xcuserdata/noah.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + DarkLight Menu Bar Helper Tool.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/DarkLight Menu Bar/.DS_Store b/Helper/DarkLight Menu Bar Helper Tool/.DS_Store similarity index 79% rename from DarkLight Menu Bar/.DS_Store rename to Helper/DarkLight Menu Bar Helper Tool/.DS_Store index f24ed0a..c175e13 100644 Binary files a/DarkLight Menu Bar/.DS_Store and b/Helper/DarkLight Menu Bar Helper Tool/.DS_Store differ diff --git a/Helper/DarkLight Menu Bar Helper Tool/AppDelegate.swift b/Helper/DarkLight Menu Bar Helper Tool/AppDelegate.swift new file mode 100644 index 0000000..11331ec --- /dev/null +++ b/Helper/DarkLight Menu Bar Helper Tool/AppDelegate.swift @@ -0,0 +1,52 @@ +// +// AppDelegate.swift +// DarkLight Menu Bar Helper Tool +// +// Created by Noah Evans on 31/05/2020. +// Copyright © 2020 Noah Evans. All rights reserved. +// + +import Cocoa +import Automator + +@NSApplicationMain +class AppDelegate: NSObject, NSApplicationDelegate { + + func changeTheme() { + guard let workflowPath = Bundle.main.path(forResource: "script", ofType: "workflow") else { + print("Workflow resource not found") + let alert = NSAlert() + alert.alertStyle = .critical + alert.messageText = "There was an issue changing the system theme." + alert.informativeText = "Please reinstall the application." + alert.runModal() + return + } + + let workflowURL = URL(fileURLWithPath: workflowPath) + do { + try AMWorkflow.run(at:workflowURL, withInput: nil) + } catch { + print("Error running workflow: \(error)") + + } + print("Done, quitting...") + NSApplication.shared.terminate(self) + } + + + + + func applicationDidFinishLaunching(_ aNotification: Notification) { + changeTheme() + + + func applicationWillTerminate(_ aNotification: Notification) { + // Insert code here to tear down your application + } + + + +} + +} diff --git a/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/AppIcon.appiconset/1616.png b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/AppIcon.appiconset/1616.png new file mode 100644 index 0000000..23df789 Binary files /dev/null and b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/AppIcon.appiconset/1616.png differ diff --git a/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/AppIcon.appiconset/3232-1.png b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/AppIcon.appiconset/3232-1.png new file mode 100644 index 0000000..e03c35a Binary files /dev/null and b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/AppIcon.appiconset/3232-1.png differ diff --git a/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/AppIcon.appiconset/3232.png b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/AppIcon.appiconset/3232.png new file mode 100644 index 0000000..e03c35a Binary files /dev/null and b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/AppIcon.appiconset/3232.png differ diff --git a/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/AppIcon.appiconset/6464.png b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/AppIcon.appiconset/6464.png new file mode 100644 index 0000000..04c09a8 Binary files /dev/null and b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/AppIcon.appiconset/6464.png differ diff --git a/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/AppIcon.appiconset/Contents.json b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..6437b72 --- /dev/null +++ b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,62 @@ +{ + "images" : [ + { + "filename" : "1616.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "16x16" + }, + { + "filename" : "3232.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "16x16" + }, + { + "filename" : "3232-1.png", + "idiom" : "mac", + "scale" : "1x", + "size" : "32x32" + }, + { + "filename" : "6464.png", + "idiom" : "mac", + "scale" : "2x", + "size" : "32x32" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "128x128" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "128x128" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "256x256" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "256x256" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "512x512" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "512x512" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/Contents.json b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/barIcon.imageset/1818.png b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/barIcon.imageset/1818.png new file mode 100644 index 0000000..8eae22c Binary files /dev/null and b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/barIcon.imageset/1818.png differ diff --git a/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/barIcon.imageset/3636.png b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/barIcon.imageset/3636.png new file mode 100644 index 0000000..fcf4cd5 Binary files /dev/null and b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/barIcon.imageset/3636.png differ diff --git a/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/barIcon.imageset/Contents.json b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/barIcon.imageset/Contents.json new file mode 100644 index 0000000..05ad682 --- /dev/null +++ b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/barIcon.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "filename" : "1818.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "3636.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/velocityGlyph.imageset/Contents.json b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/velocityGlyph.imageset/Contents.json new file mode 100644 index 0000000..d9e9c38 --- /dev/null +++ b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/velocityGlyph.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "Glyph Black Transparent@1x.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "Glyph Black Transparent@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "Glyph Black Transparent@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/velocityGlyph.imageset/Glyph Black Transparent@1x.png b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/velocityGlyph.imageset/Glyph Black Transparent@1x.png new file mode 100644 index 0000000..135aa3f Binary files /dev/null and b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/velocityGlyph.imageset/Glyph Black Transparent@1x.png differ diff --git a/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/velocityGlyph.imageset/Glyph Black Transparent@2x.png b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/velocityGlyph.imageset/Glyph Black Transparent@2x.png new file mode 100644 index 0000000..e83e55a Binary files /dev/null and b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/velocityGlyph.imageset/Glyph Black Transparent@2x.png differ diff --git a/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/velocityGlyph.imageset/Glyph Black Transparent@3x.png b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/velocityGlyph.imageset/Glyph Black Transparent@3x.png new file mode 100644 index 0000000..6533ca1 Binary files /dev/null and b/Helper/DarkLight Menu Bar Helper Tool/Assets.xcassets/velocityGlyph.imageset/Glyph Black Transparent@3x.png differ diff --git a/Helper/DarkLight Menu Bar Helper Tool/Base.lproj/Main.storyboard b/Helper/DarkLight Menu Bar Helper Tool/Base.lproj/Main.storyboard new file mode 100644 index 0000000..6531bba --- /dev/null +++ b/Helper/DarkLight Menu Bar Helper Tool/Base.lproj/Main.storyboard @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/DarkLight Menu Bar/DarkLight_Menu_Bar.entitlements b/Helper/DarkLight Menu Bar Helper Tool/DarkLight_Menu_Bar_Helper_Tool.entitlements similarity index 100% rename from DarkLight Menu Bar/DarkLight_Menu_Bar.entitlements rename to Helper/DarkLight Menu Bar Helper Tool/DarkLight_Menu_Bar_Helper_Tool.entitlements diff --git a/Helper/DarkLight Menu Bar Helper Tool/Info.plist b/Helper/DarkLight Menu Bar Helper Tool/Info.plist new file mode 100644 index 0000000..c4c76e0 --- /dev/null +++ b/Helper/DarkLight Menu Bar Helper Tool/Info.plist @@ -0,0 +1,38 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIconFile + + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSMinimumSystemVersion + $(MACOSX_DEPLOYMENT_TARGET) + NSHumanReadableCopyright + Copyright © 2020 Noah Evans. All rights reserved. + NSMainStoryboardFile + Main + NSPrincipalClass + NSApplication + NSSupportsAutomaticTermination + + NSSupportsSuddenTermination + + LSUIElement + + + diff --git a/Helper/DarkLight Menu Bar Helper Tool/ViewController.swift b/Helper/DarkLight Menu Bar Helper Tool/ViewController.swift new file mode 100644 index 0000000..26cdf36 --- /dev/null +++ b/Helper/DarkLight Menu Bar Helper Tool/ViewController.swift @@ -0,0 +1,27 @@ +// +// ViewController.swift +// DarkLight Menu Bar Helper Tool +// +// Created by Noah Evans on 01/06/2020. +// Copyright © 2020 Noah Evans. All rights reserved. +// + +import Cocoa + +class ViewController: NSViewController { + + override func viewDidLoad() { + super.viewDidLoad() + + // Do any additional setup after loading the view. + } + + override var representedObject: Any? { + didSet { + // Update the view, if already loaded. + } + } + + +} + diff --git a/DarkLight Menu Bar/script.workflow/Contents/Info.plist b/Helper/DarkLight Menu Bar Helper Tool/script.workflow/Contents/Info.plist similarity index 100% rename from DarkLight Menu Bar/script.workflow/Contents/Info.plist rename to Helper/DarkLight Menu Bar Helper Tool/script.workflow/Contents/Info.plist diff --git a/DarkLight Menu Bar/script.workflow/Contents/QuickLook/Thumbnail.png b/Helper/DarkLight Menu Bar Helper Tool/script.workflow/Contents/QuickLook/Thumbnail.png similarity index 100% rename from DarkLight Menu Bar/script.workflow/Contents/QuickLook/Thumbnail.png rename to Helper/DarkLight Menu Bar Helper Tool/script.workflow/Contents/QuickLook/Thumbnail.png diff --git a/DarkLight Menu Bar/script.workflow/Contents/_CodeSignature/CodeDirectory b/Helper/DarkLight Menu Bar Helper Tool/script.workflow/Contents/_CodeSignature/CodeDirectory similarity index 100% rename from DarkLight Menu Bar/script.workflow/Contents/_CodeSignature/CodeDirectory rename to Helper/DarkLight Menu Bar Helper Tool/script.workflow/Contents/_CodeSignature/CodeDirectory diff --git a/DarkLight Menu Bar/script.workflow/Contents/_CodeSignature/CodeRequirements b/Helper/DarkLight Menu Bar Helper Tool/script.workflow/Contents/_CodeSignature/CodeRequirements similarity index 100% rename from DarkLight Menu Bar/script.workflow/Contents/_CodeSignature/CodeRequirements rename to Helper/DarkLight Menu Bar Helper Tool/script.workflow/Contents/_CodeSignature/CodeRequirements diff --git a/DarkLight Menu Bar/script.workflow/Contents/_CodeSignature/CodeRequirements-1 b/Helper/DarkLight Menu Bar Helper Tool/script.workflow/Contents/_CodeSignature/CodeRequirements-1 similarity index 100% rename from DarkLight Menu Bar/script.workflow/Contents/_CodeSignature/CodeRequirements-1 rename to Helper/DarkLight Menu Bar Helper Tool/script.workflow/Contents/_CodeSignature/CodeRequirements-1 diff --git a/DarkLight Menu Bar/script.workflow/Contents/_CodeSignature/CodeResources.xml b/Helper/DarkLight Menu Bar Helper Tool/script.workflow/Contents/_CodeSignature/CodeResources.xml similarity index 100% rename from DarkLight Menu Bar/script.workflow/Contents/_CodeSignature/CodeResources.xml rename to Helper/DarkLight Menu Bar Helper Tool/script.workflow/Contents/_CodeSignature/CodeResources.xml diff --git a/DarkLight Menu Bar/script.workflow/Contents/_CodeSignature/CodeSignature b/Helper/DarkLight Menu Bar Helper Tool/script.workflow/Contents/_CodeSignature/CodeSignature similarity index 100% rename from DarkLight Menu Bar/script.workflow/Contents/_CodeSignature/CodeSignature rename to Helper/DarkLight Menu Bar Helper Tool/script.workflow/Contents/_CodeSignature/CodeSignature diff --git a/DarkLight Menu Bar/script.workflow/Contents/document.wflow b/Helper/DarkLight Menu Bar Helper Tool/script.workflow/Contents/document.wflow similarity index 100% rename from DarkLight Menu Bar/script.workflow/Contents/document.wflow rename to Helper/DarkLight Menu Bar Helper Tool/script.workflow/Contents/document.wflow diff --git a/autolaunch/VelocityApps.DarkLight-Menu-Bar.plist b/autolaunch/VelocityApps.DarkLight-Menu-Bar.plist new file mode 100644 index 0000000..d151367 --- /dev/null +++ b/autolaunch/VelocityApps.DarkLight-Menu-Bar.plist @@ -0,0 +1,26 @@ + + + + + Disabled + + KeepAlive + + Label + VelocityApps.DarkLight-Menu-Bar + LimitLoadToSessionType + + Aqua + + ProgramArguments + + /Applications/DarkLight Menu Bar.app/Contents/MacOS/DarkLight Menu Bar + -RunAsAgent + YES + + RunAtLoad + + WorkingDirectory + /Applications/DarkLight Menu Bar.app/Contents/MacOS + +