diff --git a/Brightness Sync.xcodeproj/project.pbxproj b/Brightness Sync.xcodeproj/project.pbxproj index 3bb874a..0607254 100644 --- a/Brightness Sync.xcodeproj/project.pbxproj +++ b/Brightness Sync.xcodeproj/project.pbxproj @@ -364,7 +364,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 2.3.1; + CURRENT_PROJECT_VERSION = 2.3.2; DEVELOPMENT_TEAM = 7M6D294GQ9; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = "Brightness Sync/Info.plist"; @@ -372,7 +372,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); - MARKETING_VERSION = 2.3.1; + MARKETING_VERSION = 2.3.2; PRODUCT_BUNDLE_IDENTIFIER = "dev.vandijk.Brightness-Sync"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -390,7 +390,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 2.3.1; + CURRENT_PROJECT_VERSION = 2.3.2; DEVELOPMENT_TEAM = 7M6D294GQ9; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = "Brightness Sync/Info.plist"; @@ -398,7 +398,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); - MARKETING_VERSION = 2.3.1; + MARKETING_VERSION = 2.3.2; PRODUCT_BUNDLE_IDENTIFIER = "dev.vandijk.Brightness-Sync"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/Brightness Sync/AppDelegate.swift b/Brightness Sync/AppDelegate.swift index d9c7cf2..4d2da26 100644 --- a/Brightness Sync/AppDelegate.swift +++ b/Brightness Sync/AppDelegate.swift @@ -16,7 +16,11 @@ class AppDelegate: NSObject, NSApplicationDelegate { func applicationDidFinishLaunching(_ aNotification: Notification) { if let button = statusItem.button { - button.image = #imageLiteral(resourceName: "StatusBarButtonImage") + if #available(macOS 11.0, *) { + button.image = NSImage(named: "MenuBarIcon") + } else { + button.image = NSImage(named: "MenuBarIconOld") + } } let menu = NSMenu() diff --git a/Brightness Sync/Assets.xcassets/Contents.json b/Brightness Sync/Assets.xcassets/Contents.json index da4a164..73c0059 100644 --- a/Brightness Sync/Assets.xcassets/Contents.json +++ b/Brightness Sync/Assets.xcassets/Contents.json @@ -1,6 +1,6 @@ { "info" : { - "version" : 1, - "author" : "xcode" + "author" : "xcode", + "version" : 1 } -} \ No newline at end of file +} diff --git a/Brightness Sync/Assets.xcassets/MenuBarIcon.imageset/Brightness Sync.png b/Brightness Sync/Assets.xcassets/MenuBarIcon.imageset/Brightness Sync.png new file mode 100644 index 0000000..f526fc2 Binary files /dev/null and b/Brightness Sync/Assets.xcassets/MenuBarIcon.imageset/Brightness Sync.png differ diff --git a/Brightness Sync/Assets.xcassets/StatusBarButtonImage.imageset/Contents.json b/Brightness Sync/Assets.xcassets/MenuBarIcon.imageset/Contents.json similarity index 71% rename from Brightness Sync/Assets.xcassets/StatusBarButtonImage.imageset/Contents.json rename to Brightness Sync/Assets.xcassets/MenuBarIcon.imageset/Contents.json index fdc6bde..9076f15 100644 --- a/Brightness Sync/Assets.xcassets/StatusBarButtonImage.imageset/Contents.json +++ b/Brightness Sync/Assets.xcassets/MenuBarIcon.imageset/Contents.json @@ -5,16 +5,16 @@ "scale" : "1x" }, { + "filename" : "Brightness Sync.png", "idiom" : "mac", - "filename" : "Brightness Sync 45.png", "scale" : "2x" } ], "info" : { - "version" : 1, - "author" : "xcode" + "author" : "xcode", + "version" : 1 }, "properties" : { "template-rendering-intent" : "template" } -} \ No newline at end of file +} diff --git a/Brightness Sync/Assets.xcassets/StatusBarButtonImage.imageset/Brightness Sync 45.png b/Brightness Sync/Assets.xcassets/MenuBarIconOld.imageset/Brightness Sync Old.png similarity index 100% rename from Brightness Sync/Assets.xcassets/StatusBarButtonImage.imageset/Brightness Sync 45.png rename to Brightness Sync/Assets.xcassets/MenuBarIconOld.imageset/Brightness Sync Old.png diff --git a/Brightness Sync/Assets.xcassets/MenuBarIconOld.imageset/Contents.json b/Brightness Sync/Assets.xcassets/MenuBarIconOld.imageset/Contents.json new file mode 100644 index 0000000..c06b28f --- /dev/null +++ b/Brightness Sync/Assets.xcassets/MenuBarIconOld.imageset/Contents.json @@ -0,0 +1,20 @@ +{ + "images" : [ + { + "idiom" : "mac", + "scale" : "1x" + }, + { + "filename" : "Brightness Sync Old.png", + "idiom" : "mac", + "scale" : "2x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + }, + "properties" : { + "template-rendering-intent" : "template" + } +}