Browse Source

Ternary FTW.

v1.4.1
Abhishek Banthia 8 years ago
parent
commit
b036aabce0
  1. BIN
      Clocker.xcodeproj/project.xcworkspace/xcuserdata/abhishekbanthia.xcuserdatad/UserInterfaceState.xcuserstate
  2. 10
      Clocker/StatusItemView.m

BIN
Clocker.xcodeproj/project.xcworkspace/xcuserdata/abhishekbanthia.xcuserdatad/UserInterfaceState.xcuserstate generated

Binary file not shown.

10
Clocker/StatusItemView.m

@ -116,14 +116,8 @@
}
else
{
if ([[[NSUserDefaults standardUserDefaults] stringForKey:@"AppleInterfaceStyle"] isEqualToString:@"Dark"])
{
self.image = [NSImage imageNamed:@"DarkModeIcon"];
}
else
{
self.image = [NSImage imageNamed:@"LightModeIcon"];
}
self.image = [[[NSUserDefaults standardUserDefaults] stringForKey:@"AppleInterfaceStyle"] isEqualToString:@"Dark"] ? [NSImage imageNamed:@"DarkModeIcon"] : [NSImage imageNamed:@"LightModeIcon"];
self.statusItem.length = 24;
[self.statusItem drawStatusBarBackgroundInRect:CGRectMake(0, 0, self.image.size.width, self.image.size.height) withHighlight:NO];

Loading…
Cancel
Save