This repository has been archived by the owner on Mar 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 207
dark mode for 10.10 #13
Comments
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 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is there a way to enable dark mode for 10.10 so the icon is more visible when in dark mode?
The text was updated successfully, but these errors were encountered: