Skip to content

Commit cd5582a

Browse files
committed
New status menu icon supporting dark mode
1 parent 9dbe84f commit cd5582a

File tree

14 files changed

+112
-42
lines changed

14 files changed

+112
-42
lines changed

Graphics/Background.psd

-228 KB
Binary file not shown.

Graphics/MenuIcon.psd

-40.4 KB
Binary file not shown.

Graphics/StatusMenuTemplate.eps

Lines changed: 86 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ You might need to disable OS X Gatekeeper to run it: *System Preferences* > *Sec
4040

4141
* Thanks to [ExitMothership](http://exitmothership.deviantart.com) for his [LED Cinema Display Icon](http://exitmothership.deviantart.com/art/LED-Cinema-Display-Icon-331815542), which is used for the app icon.
4242

43+
* The [vector drawing used for the status menu icon](Graphics/StatusMenuTemplate.eps) was made by [Elegant Themes](http://www.flaticon.com/authors/elegant-themes) from [Flaticon](http://www.flaticon.com).
44+
4345
## License
4446

4547
Resolution Menu is published under the [MIT License](http://www.opensource.org/licenses/mit-license.php).

Resolution Menu/AppDelegate.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010
#import "DisplayModeMenuItem.h"
1111
#import <IOKit/graphics/IOGraphicsLib.h>
1212

13+
static NSString *const kStatusMenuTemplateName = @"StatusMenuTemplate";
14+
1315
@implementation AppDelegate
1416

1517
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
1618
{
17-
// Add the menu from our NIB (self.menu) to the system status bar
18-
self.statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength];
19-
[self.statusItem setMenu:self.menu];
20-
[self.statusItem setImage:[NSImage imageNamed:@"MenuIcon"]];
21-
[self.statusItem setAlternateImage:[NSImage imageNamed:@"MenuIconAlternate"]];
22-
[self.statusItem setHighlightMode:YES];
19+
_statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength];
20+
_statusItem.menu = self.menu;
21+
_statusItem.image = [NSImage imageNamed:kStatusMenuTemplateName];
22+
_statusItem.highlightMode = YES;
2323
}
2424

2525
- (void)dealloc

Resolution Menu/Assets.xcassets/MenuIcon.imageset/Contents.json

Lines changed: 0 additions & 18 deletions
This file was deleted.
-1.46 KB
Binary file not shown.
-1.55 KB
Binary file not shown.

Resolution Menu/Assets.xcassets/MenuIconAlternate.imageset/Contents.json

Lines changed: 0 additions & 18 deletions
This file was deleted.
-1.46 KB
Binary file not shown.

0 commit comments

Comments
 (0)