Popup
Popup copied to clipboard
dark mode for 10.10
Is there a way to enable dark mode for 10.10 so the icon is more visible when in dark mode?
Hi, any update on this? I can look into this only later, sorry :)
You can change the image based on the AppleInterfaceStyle key in drawRect:
- (void)drawRect:(NSRect)dirtyRect
{
// Set up dark mode for icon
if ([[[NSUserDefaults standardUserDefaults] stringForKey:@"AppleInterfaceStyle"] isEqual: @"Dark"])
{
self.image = [NSImage imageNamed:@"StatusHighlighted"];
}
else
{
if (self.isHighlighted)
self.image = [NSImage imageNamed:@"StatusHighlighted"];
else
self.image = [NSImage imageNamed:@"Status"];
}
// rest of code
Where would you put this at? panel.xib or a .h .m file?
The drawRect method in the StatusItemView.m file. My code has been added as a pull request in the newest commit.
This is still not right....this is how its supposed to work
https://github.com/nirbhayg/NinjaMode/
https://www.youtube.com/watch?v=jn41sOiQThE