Skip to content

Commit

Permalink
Updated menu bar icon for Big Sur
Browse files Browse the repository at this point in the history
  • Loading branch information
OCJvanDijk committed Jan 2, 2021
1 parent b621aa3 commit 9d0c17d
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 12 deletions.
8 changes: 4 additions & 4 deletions Brightness Sync.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -364,15 +364,15 @@
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";
LD_RUNPATH_SEARCH_PATHS = (
"$(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 = "";
Expand All @@ -390,15 +390,15 @@
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";
LD_RUNPATH_SEARCH_PATHS = (
"$(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 = "";
Expand Down
6 changes: 5 additions & 1 deletion Brightness Sync/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
6 changes: 3 additions & 3 deletions Brightness Sync/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
"author" : "xcode",
"version" : 1
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit 9d0c17d

Please sign in to comment.