Skip to content

Commit

Permalink
1.3 - Update menubar icon on Big Sur or later
Browse files Browse the repository at this point in the history
  • Loading branch information
丈槍由紀 committed Nov 14, 2021
1 parent c32f2c7 commit e0ea626
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 14 deletions.
4 changes: 2 additions & 2 deletions SwinsianDiscord.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 7;
CURRENT_PROJECT_VERSION = 3;
DEVELOPMENT_TEAM = 9HDZTER525;
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand All @@ -361,7 +361,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 7;
CURRENT_PROJECT_VERSION = 3;
DEVELOPMENT_TEAM = 9HDZTER525;
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>SwinsianDiscord.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
7 changes: 6 additions & 1 deletion SwinsianDiscord/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ - (void) awakeFromNib {
_statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSSquareStatusItemLength];

//Allocates and loads the images into the application which will be used for our NSStatusItem
_statusImage = [NSImage imageNamed:@"menubaricon"];
if (@available(macOS 11.0, *)) {
_statusImage = [NSImage imageWithSystemSymbolName:@"music.note" accessibilityDescription:nil];
} else {
// Fallback on earlier versions
_statusImage = [NSImage imageNamed:@"menubaricon"];
}

//Yosemite Dark Menu Support
[_statusImage setTemplate:YES];
Expand Down
11 changes: 6 additions & 5 deletions SwinsianDiscord/Credits.rtf
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{\rtf1\ansi\ansicpg1252\cocoartf1561\cocoasubrtf200
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\rtf1\ansi\ansicpg1252\cocoartf2578
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fswiss\fcharset0 Helvetica-Bold;}
{\colortbl;\red255\green255\blue255;\red56\green56\blue56;\red255\green255\blue255;}
{\*\expandedcolortbl;;\cssrgb\c28235\c28235\c28235;\cssrgb\c100000\c100000\c100000;}
\margl1440\margr1440\vieww9000\viewh8400\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0

\f0\fs24 \cf0 SwinsianDiscord is a basic utility that shares what you are playing in {\field{\*\fldinst{HYPERLINK "https://swinsian.com/support/about/"}}{\fldrslt Swinsain}} on Discord.\
\f0\fs24 \cf0 SwinsianDiscord is a basic utility that shares what you are playing in {\field{\*\fldinst{HYPERLINK "https://swinsian.com/support/about/"}}{\fldrslt Swinsain}} and iTunes/Music.app on Discord.\
\
Icons provided by {\field{\*\fldinst{HYPERLINK "https://icons8.com/"}}{\fldrslt Icons8}}.\
\
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0

\b Third Party Licenses:
\b0 \
\f1\b \cf0 Third Party Licenses:
\f0\b0 \
\
DiscordRPC (MIT License)\
Copyright 2017 Discord, Inc.\
Expand Down
6 changes: 3 additions & 3 deletions SwinsianDiscord/EULA.rtf
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{\rtf1\ansi\ansicpg1252\cocoartf1561\cocoasubrtf200
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\rtf1\ansi\ansicpg1252\cocoartf2578
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;\red0\green0\blue0;}
{\*\expandedcolortbl;;\csgenericrgb\c0\c0\c0;}
\paperw11900\paperh16840\margl720\margr720\vieww19440\viewh8200\viewkind0
\deftab543
\pard\tx543\pardeftab543\pardirnatural\partightenfactor0

\f0\fs22 \cf2 \CocoaLigature0 Copyright \'a9 2018, Moy IT Solutions.\
\f0\fs22 \cf2 \CocoaLigature0 Copyright \'a9 2018-2021, MAL Updater OS X Group.\
All rights reserved.\
\
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: \
Expand Down
6 changes: 3 additions & 3 deletions SwinsianDiscord/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSAppleEventsUsageDescription</key>
<string>SwinsianDiscord uses Automation to retreive information about the current media you are playing.</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2018 Moy IT Solutions. All rights reserved.</string>
<string>© 2018-2021, MAL Updater OS X Group. All Rights Reserved.</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
Expand All @@ -41,7 +43,5 @@
<string>https://updates.malupdaterosx.moe/swinsiandiscord/profileInfo.php</string>
<key>SUPublicDSAKeyFile</key>
<string>dsa_pub.pem</string>
<key>NSAppleEventsUsageDescription</key>
<string>SwinsianDiscord uses Automation to retreive information about the current media you are playing.</string>
</dict>
</plist>

0 comments on commit e0ea626

Please sign in to comment.