[
  {
    "path": ".gitignore",
    "content": "# Xcode\n#\nbuild/\n*.pbxuser\n!default.pbxuser\n*.mode1v3\n!default.mode1v3\n*.mode2v3\n!default.mode2v3\n*.perspectivev3\n!default.perspectivev3\nxcuserdata\n*.xccheckout\n*.moved-aside\nDerivedData\n*.hmap\n*.ipa\n*.xcuserstate\n\n# CocoaPods\n#\n# We recommend against adding the Pods directory to your .gitignore. However\n# you should judge for yourself, the pros and cons are mentioned at:\n# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control\n#\n#Pods/\n"
  },
  {
    "path": "DMG/manifest.json",
    "content": "{\n  \"title\": \"Menubar Toggle\",\n  \"icon\": \"AppIcon.icns\",\n  \"background\": \"background.png\",\n  \"icon-size\": 80,\n  \"contents\": [\n    { \"x\": 304, \"y\": 140, \"type\": \"link\", \"path\": \"/Applications\" },\n    { \"x\": 100, \"y\": 140, \"type\": \"file\", \"path\": \"Menubar Toggle.app\" }\n  ]\n}"
  },
  {
    "path": "LICENSE",
    "content": "The MIT License (MIT)\n\nCopyright (c) 2015 Savelev Igor\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n"
  },
  {
    "path": "Menubar Toggle/Menubar Toggle/AppDelegate.h",
    "content": "//\n//  AppDelegate.h\n//  Menubar Toggle\n//\n//  Created by Игорь Савельев on 27/09/15.\n//  Copyright © 2015 Leonspok. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n@interface AppDelegate : NSObject <NSApplicationDelegate>\n\n\n@end\n\n"
  },
  {
    "path": "Menubar Toggle/Menubar Toggle/AppDelegate.m",
    "content": "//\n//  AppDelegate.m\n//  Menubar Toggle\n//\n//  Created by Игорь Савельев on 27/09/15.\n//  Copyright © 2015 Leonspok. All rights reserved.\n//\n\n#import \"AppDelegate.h\"\n#import \"LPWallpaperObserver.h\"\n\n@interface AppDelegate ()\n@property (strong, nonatomic) NSStatusItem *statusItem;\n@property (weak) IBOutlet NSMenu *menu;\n@property (weak) IBOutlet NSMenuItem *enabledItem;\n@property (weak) IBOutlet NSMenuItem *infoItem;\n@property (weak) IBOutlet NSMenuItem *startAtLoginItem;\n@end\n\n@implementation AppDelegate\n\n- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {\n    [self enableStatusItem];\n    \n    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(setMenuBarDarkThemeLogo) name:kThemeChangedToDarkNotification object:nil];\n    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(setMenuBarLightThemeLogo) name:kThemeChangedToLightNotification object:nil];\n}\n\n- (void)enableStatusItem {\n    [self hideIcon:self];\n    \n    _statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength];\n    _statusItem.title = @\"\";\n    _statusItem.toolTip = @\"Menubar Toggle\";\n    _statusItem.menu = self.menu;\n    _statusItem.menu.autoenablesItems = NO;\n    \n    if ([[LPWallpaperObserver sharedObserver] isDarkModeEnabled]) {\n        [self setMenuBarDarkThemeLogo];\n    } else {\n        [self setMenuBarLightThemeLogo];\n    }\n    \n    [self.infoItem setTitle:[NSString stringWithFormat:@\"ver %@ (Build %@)\", [[NSBundle mainBundle] objectForInfoDictionaryKey:@\"CFBundleShortVersionString\"], [[NSBundle mainBundle] objectForInfoDictionaryKey:@\"CFBundleVersion\"]]];\n    \n    [self.enabledItem setState:[LPWallpaperObserver sharedObserver].autoSwithOSXTheme? NSOnState : NSOffState];\n    [self.startAtLoginItem setState:[self willStartAtLogin]? NSOnState : NSOffState];\n}\n\n- (void)applicationWillBecomeActive:(NSNotification *)notification {\n    [self enableStatusItem];\n}\n\n- (void)applicationWillTerminate:(NSNotification *)aNotification {\n    // Insert code here to tear down your application\n}\n\n- (void)setMenuBarDarkThemeLogo {\n    NSImage *menuBarLogo = [NSImage imageNamed:@\"menubarLogoDarkThemeEnabled\"];\n    [menuBarLogo setTemplate:YES];\n    _statusItem.image = menuBarLogo;\n}\n\n- (void)setMenuBarLightThemeLogo {\n    NSImage *menuBarLogo = [NSImage imageNamed:@\"menubarLogoLightThemeEnabled\"];\n    [menuBarLogo setTemplate:YES];\n    _statusItem.image = menuBarLogo;\n}\n\n- (IBAction)toggleEnabled:(id)sender {\n    [[LPWallpaperObserver sharedObserver] setAutoSwithOSXTheme:![LPWallpaperObserver sharedObserver].autoSwithOSXTheme];\n    [self.enabledItem setState:[LPWallpaperObserver sharedObserver].autoSwithOSXTheme? NSOnState : NSOffState];\n}\n\n- (BOOL)willStartAtLogin {\n    BOOL foundIt = NO;\n    LSSharedFileListRef loginItems = LSSharedFileListCreate(NULL, kLSSharedFileListSessionLoginItems, NULL);\n    if (loginItems) {\n        UInt32 seed = 0U;\n        NSArray *currentLoginItems = (__bridge NSArray *)(LSSharedFileListCopySnapshot(loginItems, &seed));\n        for (id itemObject in currentLoginItems) {\n            LSSharedFileListItemRef item = (__bridge LSSharedFileListItemRef)itemObject;\n            \n            UInt32 resolutionFlags = kLSSharedFileListNoUserInteraction | kLSSharedFileListDoNotMountVolumes;\n            NSURL *URL = (__bridge NSURL *)(LSSharedFileListItemCopyResolvedURL(item, resolutionFlags, NULL));\n            foundIt = [URL isEqual:[[NSBundle mainBundle] bundleURL]];\n            if (foundIt) {\n                break;\n            }\n        }\n        CFRelease(loginItems);\n    }\n    return foundIt;\n}\n\n- (IBAction)toggleStartAtLogin:(id)sender {\n    LSSharedFileListItemRef existingItem = NULL;\n    LSSharedFileListRef loginItems = LSSharedFileListCreate(NULL, kLSSharedFileListSessionLoginItems, NULL);\n    if (loginItems) {\n        UInt32 seed = 0U;\n        NSArray *currentLoginItems = (__bridge NSArray *)(LSSharedFileListCopySnapshot(loginItems, &seed));\n        for (id itemObject in currentLoginItems) {\n            LSSharedFileListItemRef item = (__bridge LSSharedFileListItemRef)itemObject;\n            \n            UInt32 resolutionFlags = kLSSharedFileListNoUserInteraction | kLSSharedFileListDoNotMountVolumes;\n            NSURL *URL = (__bridge NSURL *)(LSSharedFileListItemCopyResolvedURL(item, resolutionFlags, NULL));\n            BOOL foundIt = [URL isEqual:[[NSBundle mainBundle] bundleURL]];\n            if (foundIt) {\n                existingItem = item;\n                break;\n            }\n        }\n        \n        if (existingItem != NULL) {\n            LSSharedFileListItemRemove(loginItems, existingItem);\n        } else {\n            LSSharedFileListInsertItemURL(loginItems, kLSSharedFileListItemBeforeFirst,\n                                          NULL, NULL, (__bridge CFURLRef)[[NSBundle mainBundle] bundleURL], NULL, NULL);\n        }\n        \n        CFRelease(loginItems);\n    }\n    \n    [self.startAtLoginItem setState:[self willStartAtLogin]? NSOnState : NSOffState];\n}\n\n- (IBAction)hideIcon:(id)sender {\n    if (!_statusItem) {\n        return;\n    }\n    [[NSStatusBar systemStatusBar] removeStatusItem:_statusItem];\n    _statusItem = nil;\n}\n\n@end\n"
  },
  {
    "path": "Menubar Toggle/Menubar Toggle/Assets.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"size\" : \"16x16\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"1024@16pt.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"16x16\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"1024@16pt@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"32x32\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"1024@32pt.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"32x32\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"1024@32pt@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"128x128\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"1024@128pt.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"128x128\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"1024@128pt@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"256x256\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"1024@256pt.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"256x256\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"1024@256pt@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"512x512\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"1024@512pt.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"512x512\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"1024@512pt@2x.png\",\n      \"scale\" : \"2x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "Menubar Toggle/Menubar Toggle/Assets.xcassets/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "Menubar Toggle/Menubar Toggle/Assets.xcassets/menubarLogoDarkThemeEnabled.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"menubarLogoDarkThemeEnabled.pdf\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "Menubar Toggle/Menubar Toggle/Assets.xcassets/menubarLogoLightThemeEnabled.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"menubarLogoLightThemeEnabled.pdf\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "Menubar Toggle/Menubar Toggle/Base.lproj/MainMenu.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"9060\" systemVersion=\"15B42\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\" customObjectInstantitationMethod=\"direct\">\n    <dependencies>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"9060\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"NSApplication\">\n            <connections>\n                <outlet property=\"delegate\" destination=\"Voe-Tx-rLC\" id=\"GzC-gU-4Uq\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <customObject id=\"Voe-Tx-rLC\" customClass=\"AppDelegate\">\n            <connections>\n                <outlet property=\"enabledItem\" destination=\"ehm-2n-Gqg\" id=\"GnF-Ml-Q1b\"/>\n                <outlet property=\"infoItem\" destination=\"ho1-Mh-Ull\" id=\"Jve-ox-X7S\"/>\n                <outlet property=\"menu\" destination=\"18z-eI-EEx\" id=\"WbT-TC-1Kg\"/>\n                <outlet property=\"startAtLoginItem\" destination=\"aVr-cq-85D\" id=\"CCJ-g5-HpU\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"YLy-65-1bz\" customClass=\"NSFontManager\"/>\n        <menu id=\"18z-eI-EEx\">\n            <items>\n                <menuItem title=\"Enabled\" id=\"ehm-2n-Gqg\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"toggleEnabled:\" target=\"Voe-Tx-rLC\" id=\"j9v-6h-AWD\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Start at login\" id=\"aVr-cq-85D\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"toggleStartAtLogin:\" target=\"Voe-Tx-rLC\" id=\"hPi-io-6TG\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Hide icon\" id=\"BbI-1l-EGq\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"hideIcon:\" target=\"Voe-Tx-rLC\" id=\"wY0-th-8BX\"/>\n                    </connections>\n                </menuItem>\n                <menuItem isSeparatorItem=\"YES\" id=\"ClW-FU-OJg\"/>\n                <menuItem title=\"ver 1.0 (Build 1003)\" enabled=\"NO\" id=\"ho1-Mh-Ull\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                </menuItem>\n                <menuItem title=\"Quit\" id=\"EA5-RA-6Jq\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"terminate:\" target=\"-1\" id=\"Kwd-XN-Hrf\"/>\n                    </connections>\n                </menuItem>\n            </items>\n            <point key=\"canvasLocation\" x=\"40\" y=\"287.5\"/>\n        </menu>\n    </objects>\n</document>\n"
  },
  {
    "path": "Menubar Toggle/Menubar Toggle/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>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.1</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1100</string>\n\t<key>LSApplicationCategoryType</key>\n\t<string>public.app-category.utilities</string>\n\t<key>LSMinimumSystemVersion</key>\n\t<string>$(MACOSX_DEPLOYMENT_TARGET)</string>\n\t<key>LSUIElement</key>\n\t<true/>\n\t<key>NSHumanReadableCopyright</key>\n\t<string>Copyright © 2015 Leonspok. All rights reserved.</string>\n\t<key>NSMainNibFile</key>\n\t<string>MainMenu</string>\n\t<key>NSPrincipalClass</key>\n\t<string>NSApplication</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "Menubar Toggle/Menubar Toggle/LPWallpaperObserver.h",
    "content": "//\n//  LPWallpaperObserver.h\n//  Menubar Toggle\n//\n//  Created by Игорь Савельев on 27/09/15.\n//  Copyright © 2015 Leonspok. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nextern NSString *const kThemeChangedToDarkNotification;\nextern NSString *const kThemeChangedToLightNotification;\n\n@interface LPWallpaperObserver : NSObject\n\n@property (nonatomic, assign) BOOL autoSwithOSXTheme;\n@property (nonatomic, assign, readonly, getter=isDarkModeEnabled) BOOL darkModeEnabled;\n\n+ (instancetype)sharedObserver;\n\n- (void)setSuitableThemeIfNeeded;\n- (void)resetTheme;\n\n@end\n"
  },
  {
    "path": "Menubar Toggle/Menubar Toggle/LPWallpaperObserver.m",
    "content": "//\n//  LPWallpaperObserver.m\n//  Menubar Toggle\n//\n//  Created by Игорь Савельев on 27/09/15.\n//  Copyright © 2015 Leonspok. All rights reserved.\n//\n\n#import \"LPWallpaperObserver.h\"\n#import \"NSImage+Luminance.h\"\n\n@import AppKit;\n\nNSString *const kThemeChangedToDarkNotification = @\"ThemeChangedToDarkNotification\";\nNSString *const kThemeChangedToLightNotification = @\"ThemeChangedToLightNotification\";\n\nstatic NSString *const kAutoSwithOSXThemeKey = @\"autoSwithOSXTheme\";\nstatic NSString *const kImagesLuminanceInfoPlistFileName = @\"imagesLuminance.plist\";\n\n@implementation LPWallpaperObserver {\n    NSString *applicationSupportFolder;\n    NSTimer *observingTimer;\n}\n\n+ (instancetype)sharedObserver {\n    static LPWallpaperObserver *__sharedObserver = nil;\n    static dispatch_once_t onceToken;\n    dispatch_once(&onceToken, ^{\n        __sharedObserver = [[LPWallpaperObserver alloc] init];\n    });\n    return __sharedObserver;\n}\n\n- (id)init {\n    self = [super init];\n    if (self) {\n        [self updatePaths];\n        \n        if (self.autoSwithOSXTheme) {\n            [self setAutoSwithOSXTheme:self.autoSwithOSXTheme];\n        }\n    }\n    return self;\n}\n\n- (void)updatePaths {\n    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES);\n    applicationSupportFolder = [[paths firstObject] stringByAppendingPathComponent:@\"Menubar Toggle\"];\n    \n    if (![[NSFileManager defaultManager] fileExistsAtPath:applicationSupportFolder]) {\n        [[NSFileManager defaultManager] createDirectoryAtPath:applicationSupportFolder withIntermediateDirectories:YES attributes:nil error:nil];\n    }\n}\n\n#pragma mark Getters and Setters\n\n- (BOOL)autoSwithOSXTheme {\n    if (NSAppKitVersionNumber < NSAppKitVersionNumber10_10) {\n        return NO;\n    }\n    \n    return [[NSUserDefaults standardUserDefaults] boolForKey:kAutoSwithOSXThemeKey];\n}\n\n- (void)setAutoSwithOSXTheme:(BOOL)autoSwithOSXTheme {\n    if (NSAppKitVersionNumber < NSAppKitVersionNumber10_10) {\n        autoSwithOSXTheme = NO;\n    }\n    \n    [[NSUserDefaults standardUserDefaults] setBool:autoSwithOSXTheme forKey:kAutoSwithOSXThemeKey];\n    [[NSUserDefaults standardUserDefaults] synchronize];\n    \n    if (!autoSwithOSXTheme) {\n        [self resetTheme];\n        [observingTimer invalidate];\n        observingTimer = nil;\n    } else {\n        [self setSuitableThemeIfNeeded];\n        dispatch_async(dispatch_get_main_queue(), ^{\n            observingTimer = [NSTimer scheduledTimerWithTimeInterval:3.0f target:self selector:@selector(setSuitableThemeIfNeeded) userInfo:nil repeats:YES];\n        });\n    }\n}\n\n- (BOOL)isDarkModeEnabled {\n\tNSAppleScript *script = [[NSAppleScript alloc] initWithContentsOfURL:[[NSBundle mainBundle] URLForResource:@\"get_theme\" withExtension:@\"txt\"] error:nil];\n\tNSAppleEventDescriptor *dsc = [script executeAndReturnError:nil];\n\treturn dsc.booleanValue;\n}\n\n- (void)resetTheme {\n\t[self setDarkTheme:NO];\n}\n\n#pragma mark Wallpapers Observing\n\n- (BOOL)themeShouldBeDark {\n    CGFloat averageLuminance = 0.0f;\n    for (NSScreen *screen in [NSScreen screens]) {\n        NSString *path = [[[NSWorkspace sharedWorkspace] desktopImageURLForScreen:screen] path];\n        averageLuminance += [self luminanceForImageWithPath:path];\n    }\n    if ([NSScreen screens].count > 0) {\n        averageLuminance = averageLuminance/[NSScreen screens].count;\n    }\n    return averageLuminance < 0.375;\n}\n\n- (void)setDarkTheme:(BOOL)dark {\n\tNSString *scriptSource = [[NSString alloc] initWithContentsOfURL:[[NSBundle mainBundle] URLForResource:@\"change_theme\" withExtension:@\"txt\"] encoding:NSUTF8StringEncoding error:nil];\n\tscriptSource = [scriptSource stringByReplacingOccurrencesOfString:@\"<mode>\" withString:(dark? @\"true\" : @\"false\")];\n\tNSAppleScript *script = [[NSAppleScript alloc] initWithSource:scriptSource];\n\t[script executeAndReturnError:nil];\n\tdispatch_async(dispatch_get_main_queue(), ^{\n\t\tif (dark) {\n\t\t\t[[NSNotificationCenter defaultCenter] postNotificationName:kThemeChangedToDarkNotification object:nil];\n\t\t} else {\n\t\t\t[[NSNotificationCenter defaultCenter] postNotificationName:kThemeChangedToLightNotification object:nil];\n\t\t}\n\t});\n}\n\n- (void)setSuitableThemeIfNeeded {\n    if (NSAppKitVersionNumber < NSAppKitVersionNumber10_10) {\n        return;\n    }\n    \n    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^{\n        BOOL shouldBeDark = [self themeShouldBeDark];\n        BOOL darkModeEnabled = [self isDarkModeEnabled];\n        if (shouldBeDark != darkModeEnabled) {\n            dispatch_async(dispatch_get_main_queue(), ^{\n                [self setDarkTheme:shouldBeDark];\n            });\n        }\n    });\n}\n\n#pragma mark Images Managing\n\n- (CGFloat)luminanceForImageWithPath:(NSString *)path {\n    NSString *plistFilePath = [applicationSupportFolder stringByAppendingPathComponent:kImagesLuminanceInfoPlistFileName];\n    NSMutableDictionary *info = [[NSMutableDictionary alloc] initWithContentsOfFile:plistFilePath];\n    \n    if ([info objectForKey:path]) {\n        return [[info objectForKey:path] doubleValue];\n    }\n    \n    if (!info) {\n        info = [NSMutableDictionary dictionary];\n    }\n    \n    NSImage *image = [[NSImage alloc] initWithContentsOfFile:path];\n    if (image) {\n        CGFloat luminance = image.luminance;\n        [info setObject:@(luminance) forKey:path];\n        [info writeToFile:plistFilePath atomically:YES];\n        return luminance;\n    } else {\n        return 0.5f;\n    }\n}\n\n@end\n"
  },
  {
    "path": "Menubar Toggle/Menubar Toggle/Menubar Toggle.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": "Menubar Toggle/Menubar Toggle/NSImage+Luminance.h",
    "content": "//\n//  NSImage+Luminance.h\n//  Unsplash Wallpaper\n//\n//  Created by Игорь Савельев on 06/06/15.\n//  Copyright (c) 2015 Leonspok. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\n@interface NSImage (Luminance)\n\n@property (nonatomic, readonly) CGFloat luminance;\n\n@end\n"
  },
  {
    "path": "Menubar Toggle/Menubar Toggle/NSImage+Luminance.m",
    "content": "//\n//  NSImage+Luminance.m\n//  Unsplash Wallpaper\n//\n//  Created by Игорь Савельев on 06/06/15.\n//  Copyright (c) 2015 Leonspok. All rights reserved.\n//\n\n#import \"NSImage+Luminance.h\"\n#import <objc/runtime.h>\n\nstatic NSString *const kCalculatedLuminanceKey = @\"CALCULATED LUMINANCE\";\n\n@implementation NSImage (Luminance) \n\n- (NSBitmapImageRep *)bitmapImageRepresentation {\n    int width = [self size].width;\n    int height = [self size].height;\n    \n    if(width < 1 || height < 1) {\n        return nil;\n    }\n    \n    NSBitmapImageRep *rep = [[NSBitmapImageRep alloc]\n                             initWithBitmapDataPlanes:NULL\n                             pixelsWide:width\n                             pixelsHigh:height\n                             bitsPerSample:8\n                             samplesPerPixel:4\n                             hasAlpha:YES\n                             isPlanar:NO\n                             colorSpaceName:NSDeviceRGBColorSpace\n                             bytesPerRow:(width * 4)\n                             bitsPerPixel:32];\n    \n    NSGraphicsContext *ctx = [NSGraphicsContext graphicsContextWithBitmapImageRep:rep];\n    [NSGraphicsContext saveGraphicsState];\n    [NSGraphicsContext setCurrentContext:ctx];\n    [self drawAtPoint:NSZeroPoint\n             fromRect:NSZeroRect\n            operation:NSCompositeCopy fraction:1.0];\n    [ctx flushGraphics];\n    [NSGraphicsContext restoreGraphicsState];\n    \n    return rep;\n}\n\n- (CGFloat)luminance {\n    NSNumber *lum = objc_getAssociatedObject(self, &kCalculatedLuminanceKey);\n    if (lum) {\n        return [lum doubleValue];\n    }\n    \n    NSBitmapImageRep *rep = [self bitmapImageRepresentation];\n    \n    int width = [self size].width;\n    int height = [self size].height;\n    \n    CGFloat totalLuminance = 0;\n    CGFloat r;\n    CGFloat g;\n    CGFloat b;\n    NSColor *color;\n    NSInteger n = 0;\n    for (NSInteger i = 0; i < height; i+=10) {\n        for (NSInteger j = 0; j < width; j+=10) {\n            color = [rep colorAtX:j y:i];\n            [color getRed:&r green:&g blue:&b alpha:NULL];\n            CGFloat luminance = (0.299*r + 0.587*g + 0.114*b);\n            totalLuminance += luminance;\n            n++;\n        }\n    }\n    CGFloat averageLuminance = totalLuminance/n;\n    \n    objc_setAssociatedObject(self, &kCalculatedLuminanceKey, @(averageLuminance), OBJC_ASSOCIATION_RETAIN);\n    return averageLuminance;\n}\n\n@end\n"
  },
  {
    "path": "Menubar Toggle/Menubar Toggle/change_theme.txt",
    "content": "tell application \"System Events\"\n\ttell appearance preferences to set dark mode to <mode>\nend tell\n"
  },
  {
    "path": "Menubar Toggle/Menubar Toggle/get_theme.txt",
    "content": "tell application \"System Events\"\n\ttell appearance preferences to get dark mode\nend tell\n"
  },
  {
    "path": "Menubar Toggle/Menubar Toggle/main.m",
    "content": "//\n//  main.m\n//  Menubar Toggle\n//\n//  Created by Игорь Савельев on 27/09/15.\n//  Copyright © 2015 Leonspok. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\nint main(int argc, const char * argv[]) {\n    return NSApplicationMain(argc, argv);\n}\n"
  },
  {
    "path": "Menubar Toggle/Menubar Toggle.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\tE39CF8221BB805CE0036A8E8 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E39CF8211BB805CE0036A8E8 /* AppDelegate.m */; };\n\t\tE39CF8251BB805CE0036A8E8 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = E39CF8241BB805CE0036A8E8 /* main.m */; };\n\t\tE39CF8271BB805CE0036A8E8 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E39CF8261BB805CE0036A8E8 /* Assets.xcassets */; };\n\t\tE39CF82A1BB805CE0036A8E8 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = E39CF8281BB805CE0036A8E8 /* MainMenu.xib */; };\n\t\tE39CF8361BB826B60036A8E8 /* NSImage+Luminance.m in Sources */ = {isa = PBXBuildFile; fileRef = E39CF8351BB826B60036A8E8 /* NSImage+Luminance.m */; };\n\t\tE39CF8391BB82B3E0036A8E8 /* LPWallpaperObserver.m in Sources */ = {isa = PBXBuildFile; fileRef = E39CF8381BB82B3E0036A8E8 /* LPWallpaperObserver.m */; };\n\t\tE3CBFB521E11224B004D51A6 /* change_theme.txt in Resources */ = {isa = PBXBuildFile; fileRef = E3CBFB511E11224B004D51A6 /* change_theme.txt */; };\n\t\tE3CBFB541E11227D004D51A6 /* get_theme.txt in Resources */ = {isa = PBXBuildFile; fileRef = E3CBFB531E11227D004D51A6 /* get_theme.txt */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXFileReference section */\n\t\tE39CF81D1BB805CE0036A8E8 /* Menubar Toggle.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = \"Menubar Toggle.app\"; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tE39CF8201BB805CE0036A8E8 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = \"<group>\"; };\n\t\tE39CF8211BB805CE0036A8E8 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = \"<group>\"; };\n\t\tE39CF8241BB805CE0036A8E8 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = \"<group>\"; };\n\t\tE39CF8261BB805CE0036A8E8 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = \"<group>\"; };\n\t\tE39CF8291BB805CE0036A8E8 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = \"<group>\"; };\n\t\tE39CF82B1BB805CE0036A8E8 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\tE39CF8341BB826B60036A8E8 /* NSImage+Luminance.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"NSImage+Luminance.h\"; sourceTree = \"<group>\"; };\n\t\tE39CF8351BB826B60036A8E8 /* NSImage+Luminance.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"NSImage+Luminance.m\"; sourceTree = \"<group>\"; };\n\t\tE39CF8371BB82B3E0036A8E8 /* LPWallpaperObserver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LPWallpaperObserver.h; sourceTree = \"<group>\"; };\n\t\tE39CF8381BB82B3E0036A8E8 /* LPWallpaperObserver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LPWallpaperObserver.m; sourceTree = \"<group>\"; };\n\t\tE39CF83C1BB834E10036A8E8 /* Menubar Toggle.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = \"Menubar Toggle.entitlements\"; sourceTree = \"<group>\"; };\n\t\tE3CBFB511E11224B004D51A6 /* change_theme.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = change_theme.txt; sourceTree = \"<group>\"; };\n\t\tE3CBFB531E11227D004D51A6 /* get_theme.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = get_theme.txt; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\tE39CF81A1BB805CE0036A8E8 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\tE39CF8141BB805CE0036A8E8 = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE39CF81F1BB805CE0036A8E8 /* Menubar Toggle */,\n\t\t\t\tE39CF81E1BB805CE0036A8E8 /* Products */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE39CF81E1BB805CE0036A8E8 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE39CF81D1BB805CE0036A8E8 /* Menubar Toggle.app */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE39CF81F1BB805CE0036A8E8 /* Menubar Toggle */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE39CF83C1BB834E10036A8E8 /* Menubar Toggle.entitlements */,\n\t\t\t\tE39CF8341BB826B60036A8E8 /* NSImage+Luminance.h */,\n\t\t\t\tE39CF8351BB826B60036A8E8 /* NSImage+Luminance.m */,\n\t\t\t\tE39CF8371BB82B3E0036A8E8 /* LPWallpaperObserver.h */,\n\t\t\t\tE39CF8381BB82B3E0036A8E8 /* LPWallpaperObserver.m */,\n\t\t\t\tE39CF8201BB805CE0036A8E8 /* AppDelegate.h */,\n\t\t\t\tE39CF8211BB805CE0036A8E8 /* AppDelegate.m */,\n\t\t\t\tE39CF8261BB805CE0036A8E8 /* Assets.xcassets */,\n\t\t\t\tE39CF8281BB805CE0036A8E8 /* MainMenu.xib */,\n\t\t\t\tE39CF82B1BB805CE0036A8E8 /* Info.plist */,\n\t\t\t\tE39CF8231BB805CE0036A8E8 /* Supporting Files */,\n\t\t\t\tE3CBFB511E11224B004D51A6 /* change_theme.txt */,\n\t\t\t\tE3CBFB531E11227D004D51A6 /* get_theme.txt */,\n\t\t\t);\n\t\t\tpath = \"Menubar Toggle\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE39CF8231BB805CE0036A8E8 /* Supporting Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE39CF8241BB805CE0036A8E8 /* main.m */,\n\t\t\t);\n\t\t\tname = \"Supporting Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\tE39CF81C1BB805CE0036A8E8 /* Menubar Toggle */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = E39CF82E1BB805CE0036A8E8 /* Build configuration list for PBXNativeTarget \"Menubar Toggle\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tE39CF8191BB805CE0036A8E8 /* Sources */,\n\t\t\t\tE39CF81A1BB805CE0036A8E8 /* Frameworks */,\n\t\t\t\tE39CF81B1BB805CE0036A8E8 /* Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = \"Menubar Toggle\";\n\t\t\tproductName = \"Menubar Toggle\";\n\t\t\tproductReference = E39CF81D1BB805CE0036A8E8 /* Menubar Toggle.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\tE39CF8151BB805CE0036A8E8 /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 0700;\n\t\t\t\tORGANIZATIONNAME = Leonspok;\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\tE39CF81C1BB805CE0036A8E8 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 7.0;\n\t\t\t\t\t\tDevelopmentTeam = 6KXZX3AW22;\n\t\t\t\t\t\tProvisioningStyle = Automatic;\n\t\t\t\t\t\tSystemCapabilities = {\n\t\t\t\t\t\t\tcom.apple.Sandbox = {\n\t\t\t\t\t\t\t\tenabled = 0;\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t};\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = E39CF8181BB805CE0036A8E8 /* Build configuration list for PBXProject \"Menubar Toggle\" */;\n\t\t\tcompatibilityVersion = \"Xcode 3.2\";\n\t\t\tdevelopmentRegion = English;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = E39CF8141BB805CE0036A8E8;\n\t\t\tproductRefGroup = E39CF81E1BB805CE0036A8E8 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\tE39CF81C1BB805CE0036A8E8 /* Menubar Toggle */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\tE39CF81B1BB805CE0036A8E8 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE3CBFB521E11224B004D51A6 /* change_theme.txt in Resources */,\n\t\t\t\tE3CBFB541E11227D004D51A6 /* get_theme.txt in Resources */,\n\t\t\t\tE39CF8271BB805CE0036A8E8 /* Assets.xcassets in Resources */,\n\t\t\t\tE39CF82A1BB805CE0036A8E8 /* MainMenu.xib in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\tE39CF8191BB805CE0036A8E8 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE39CF8251BB805CE0036A8E8 /* main.m in Sources */,\n\t\t\t\tE39CF8391BB82B3E0036A8E8 /* LPWallpaperObserver.m in Sources */,\n\t\t\t\tE39CF8361BB826B60036A8E8 /* NSImage+Luminance.m in Sources */,\n\t\t\t\tE39CF8221BB805CE0036A8E8 /* AppDelegate.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXVariantGroup section */\n\t\tE39CF8281BB805CE0036A8E8 /* MainMenu.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE39CF8291BB805CE0036A8E8 /* Base */,\n\t\t\t);\n\t\t\tname = MainMenu.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\tE39CF82C1BB805CE0036A8E8 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\tCODE_SIGN_IDENTITY = \"-\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 10.10;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tE39CF82D1BB805CE0036A8E8 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\tCODE_SIGN_IDENTITY = \"-\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 10.10;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\tE39CF82F1BB805CE0036A8E8 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCODE_SIGN_IDENTITY = \"Mac Developer\";\n\t\t\t\tCOMBINE_HIDPI_IMAGES = YES;\n\t\t\t\tDEVELOPMENT_TEAM = 6KXZX3AW22;\n\t\t\t\tINFOPLIST_FILE = \"Menubar Toggle/Info.plist\";\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/../Frameworks\";\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 10.10;\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"com.leonspok.osx.Menubar-Toggle\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tE39CF8301BB805CE0036A8E8 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCODE_SIGN_IDENTITY = \"Mac Developer\";\n\t\t\t\tCOMBINE_HIDPI_IMAGES = YES;\n\t\t\t\tDEVELOPMENT_TEAM = 6KXZX3AW22;\n\t\t\t\tINFOPLIST_FILE = \"Menubar Toggle/Info.plist\";\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/../Frameworks\";\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 10.10;\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"com.leonspok.osx.Menubar-Toggle\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\tE39CF8181BB805CE0036A8E8 /* Build configuration list for PBXProject \"Menubar Toggle\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tE39CF82C1BB805CE0036A8E8 /* Debug */,\n\t\t\t\tE39CF82D1BB805CE0036A8E8 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\tE39CF82E1BB805CE0036A8E8 /* Build configuration list for PBXNativeTarget \"Menubar Toggle\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tE39CF82F1BB805CE0036A8E8 /* Debug */,\n\t\t\t\tE39CF8301BB805CE0036A8E8 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = E39CF8151BB805CE0036A8E8 /* Project object */;\n}\n"
  },
  {
    "path": "Menubar Toggle/Menubar Toggle.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:Menubar Toggle.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "README.md",
    "content": "# Menubar Toggle\n\n<img src=\"light.png\" width=250> <img src=\"dark.png\" width=250>\n\nDark wallpaper - dark OS X, light wallpaper - light OS X. That's so simple.  \n\nDownload Menubar Toggle [here](https://github.com/leonspok/Menubar-Toggle/releases).\n\n***\n\nFolder **/DMG** contains all necessary files to create **.dmg** file with [appdmg](https://github.com/LinusU/node-appdmg).\n"
  }
]