diff --git a/Clocker.xcodeproj/project.xcworkspace/xcuserdata/abhishekbanthia.xcuserdatad/UserInterfaceState.xcuserstate b/Clocker.xcodeproj/project.xcworkspace/xcuserdata/abhishekbanthia.xcuserdatad/UserInterfaceState.xcuserstate index 891288ca..591022e1 100644 Binary files a/Clocker.xcodeproj/project.xcworkspace/xcuserdata/abhishekbanthia.xcuserdatad/UserInterfaceState.xcuserstate and b/Clocker.xcodeproj/project.xcworkspace/xcuserdata/abhishekbanthia.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Clocker/AboutUsWindow/CLAboutUsViewController.m b/Clocker/AboutUsWindow/CLAboutUsViewController.m index 7ce8505b..493dda4d 100644 --- a/Clocker/AboutUsWindow/CLAboutUsViewController.m +++ b/Clocker/AboutUsWindow/CLAboutUsViewController.m @@ -21,14 +21,14 @@ @interface CLAboutUsViewController () @property (weak) IBOutlet CLUnderlinedButton *privateFeedback; @property (weak) IBOutlet CLUnderlinedButton *supportClocker; @property (weak) IBOutlet CLUnderlinedButton *paypalButton; +@property (weak) IBOutlet CLUnderlinedButton *openSourceButton; @end static CLAboutUsViewController *sharedAboutUs = nil; NSString *const CLAboutUsNibIdentifier = @"CLAboutWindow"; -NSString *const CLGitHubURL = @"https://github.com/Abhishaker17/Clocker/?ref=ClockerApp"; -NSString *const CLIssueURL =@"https://github.com/Abhishaker17/Clocker/issues/?ref=ClockerApp"; +NSString *const CLGitHubURL = @"https://github.com/abhishekbanthia/Clocker/?ref=ClockerApp"; NSString *const CLPayPalURL = @"https://www.paypal.me/AbhishekBanthia"; NSString *const CLTwitterLink = @"https://twitter.com/abgbm/?ref=ClockerApp"; NSString *const CLPersonalWebsite = @"http://abhishekbanthia.com/?ref=ClockerApp"; @@ -74,15 +74,22 @@ - (void)underlineTextForActionButton NSMutableAttributedString *supportClocker = [[NSMutableAttributedString alloc] initWithAttributedString:self.supportClocker.attributedTitle]; - [supportClocker addAttribute:NSUnderlineStyleAttributeName value:[NSNumber numberWithInt:NSUnderlineStyleSingle] range:NSMakeRange(27, 19)]; + [supportClocker addAttribute:NSUnderlineStyleAttributeName value:[NSNumber numberWithInt:NSUnderlineStyleSingle] range:NSMakeRange(27, 33)]; + [self.supportClocker setAttributedTitle:supportClocker]; - [self.supportClocker setAttributedTitle:supportClocker]; + NSMutableAttributedString *openGitHub = [[NSMutableAttributedString alloc] initWithAttributedString:self.openSourceButton.attributedTitle]; + + [openGitHub addAttribute:NSUnderlineStyleAttributeName value:[NSNumber numberWithInt:NSUnderlineStyleSingle] range:NSMakeRange(32, 30)]; + + [self.openSourceButton setAttributedTitle:openGitHub]; + [self.quickCommentAction setCursor:[NSCursor pointingHandCursor]]; [self.supportClocker setCursor:[NSCursor pointingHandCursor]]; [self.privateFeedback setCursor:[NSCursor pointingHandCursor]]; [self.makerButton setCursor:[NSCursor pointingHandCursor]]; [self.paypalButton setCursor:[NSCursor pointingHandCursor]]; + [self.openSourceButton setCursor:[NSCursor pointingHandCursor]]; } - (IBAction)openMyTwitter:(id)sender @@ -93,8 +100,8 @@ - (IBAction)openMyTwitter:(id)sender - (IBAction)viewSource:(id)sender { - [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:CLGitHubURL]]; - [Answers logCustomEventWithName:@"openedGitHub" customAttributes:@{}]; + [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://appstore.com/mac/clockermenubarworldclock"]]; + [Answers logCustomEventWithName:@"Open App Store to Review" customAttributes:@{}]; } - (IBAction)reportIssue:(id)sender { @@ -116,4 +123,10 @@ - (IBAction)openWebsite:(id)sender { [Answers logCustomEventWithName:@"openedPersonalWebsite" customAttributes:@{}]; } +- (IBAction)openGitHub:(id)sender { + + [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:CLGitHubURL]]; + [Answers logCustomEventWithName:@"openedGitHub" customAttributes:@{}]; +} + @end diff --git a/Clocker/AboutUsWindow/en.lproj/CLAboutUsView.xib b/Clocker/AboutUsWindow/en.lproj/CLAboutUsView.xib index 11b50f0a..0deb9ba5 100644 --- a/Clocker/AboutUsWindow/en.lproj/CLAboutUsView.xib +++ b/Clocker/AboutUsWindow/en.lproj/CLAboutUsView.xib @@ -9,6 +9,7 @@ + @@ -42,18 +43,6 @@ - - - - - - - - - - - - @@ -72,7 +61,7 @@ - + @@ -136,24 +125,38 @@ + - - + - + +