Skip to content

Commit

Permalink
Merge branch 'release/1.2.10'
Browse files Browse the repository at this point in the history
  • Loading branch information
ygini committed Jul 10, 2017
2 parents d38407d + 16449a7 commit 884dabf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
25 changes: 8 additions & 17 deletions src/Hello IT/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,7 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
@"content": @[
@{@"functionIdentifier": @"public.title",
@"settings": @{
@"title": @"Hello IT default content",
}
},
@{@"functionIdentifier": @"public.open.resource",
@"settings": @{
@"title": @"Hello IT Documentation",
@"URL": @"https://github.com/ygini/Hello-IT/wiki",
@"imagePath": @"/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/HelpIcon.icns"

}
},
@{@"functionIdentifier": @"public.open.resource",
@"settings": @{
@"title": @"The page needed to deploy your custom content",
@"URL": @"https://github.com/ygini/Hello-IT/wiki/Preferences"
@"title": @"You Mac isn't managed, please call your IT support",
}
},
@{@"functionIdentifier": @"public.script.item",
Expand Down Expand Up @@ -225,7 +211,8 @@ - (void)updateStatusItem {
self.statusItem.image = icon;
} else {
NSColor *textColor = nil;

NSString *osxMode = [[NSUserDefaults standardUserDefaults] stringForKey:@"AppleInterfaceStyle"];

switch (self.testState) {
case HITPluginTestStateError:
textColor = [NSColor redColor];
Expand All @@ -237,7 +224,11 @@ - (void)updateStatusItem {
textColor = [NSColor orangeColor];
break;
default:
textColor = [NSColor blackColor];
if ([osxMode isEqualToString:@"Dark"]) {
textColor = [NSColor whiteColor];
} else {
textColor = [NSColor blackColor];
}
break;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Hello IT/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.2.9</string>
<string>1.2.10</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down

0 comments on commit 884dabf

Please sign in to comment.