Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
[#389] rearranged social links in about dialog
Browse files Browse the repository at this point in the history
- replaced image links with static images + text links
- added mac.hivewallet.com
- added @mac_hive apart from @hivewallet
- removed Facebook
  • Loading branch information
mackuba committed Feb 22, 2015
1 parent 297a719 commit b669f7f
Show file tree
Hide file tree
Showing 3 changed files with 115 additions and 73 deletions.
26 changes: 15 additions & 11 deletions Hive/Controllers/HIAboutHiveWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ @interface HIAboutHiveWindowController ()
@property (nonatomic, strong) IBOutlet NSTextView *creditsBox; // NSTextView doesn't support weak references
@property (nonatomic, weak) IBOutlet NSTextField *versionField;
@property (nonatomic, weak) IBOutlet NSTextField *copyrightField;
@property (nonatomic, weak) IBOutlet NSButton *twitterButton;
@property (nonatomic, weak) IBOutlet NSButton *facebookButton;
@property (nonatomic, weak) IBOutlet NSButton *githubButton;

@property (nonatomic, weak) IBOutlet NSImageView *twitterGeneralIcon;
@property (nonatomic, weak) IBOutlet NSImageView *twitterMacIcon;
@property (nonatomic, weak) IBOutlet NSImageView *githubIcon;
@property (nonatomic, weak) IBOutlet NSImageView *websiteIcon;

@property (nonatomic, strong) HILicenseInfoPanelController *licenseInfoPanel;

Expand Down Expand Up @@ -49,11 +51,17 @@ - (void)awakeFromNib {
[self.creditsBox.textStorage setAttributedString:credits];

NIKFontAwesomeIconFactory *iconFactory = [[NIKFontAwesomeIconFactory alloc] init];
iconFactory.size = self.twitterButton.frame.size.width;
iconFactory.size = self.twitterGeneralIcon.frame.size.width;

self.twitterGeneralIcon.image = [iconFactory createImageForIcon:NIKFontAwesomeIconTwitter];
self.twitterMacIcon.image = [iconFactory createImageForIcon:NIKFontAwesomeIconTwitter];
self.githubIcon.image = [iconFactory createImageForIcon:NIKFontAwesomeIconGithub];
self.websiteIcon.image = [iconFactory createImageForIcon:NIKFontAwesomeIconGlobe];

self.twitterButton.image = [iconFactory createImageForIcon:NIKFontAwesomeIconTwitter];
self.facebookButton.image = [iconFactory createImageForIcon:NIKFontAwesomeIconFacebookSquare];
self.githubButton.image = [iconFactory createImageForIcon:NIKFontAwesomeIconGithub];
self.twitterGeneralIcon.imageFrameStyle = NSImageFrameNone;
self.twitterMacIcon.imageFrameStyle = NSImageFrameNone;
self.githubIcon.imageFrameStyle = NSImageFrameNone;
self.websiteIcon.imageFrameStyle = NSImageFrameNone;

[self.window center];
}
Expand All @@ -70,10 +78,6 @@ - (IBAction)openTwitterProfile:(id)sender {
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://twitter.com/hivewallet"]];
}

- (IBAction)openFacebookProfile:(id)sender {
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://facebook.com/hivewallet"]];
}

- (IBAction)openGitHubProfile:(id)sender {
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://github.com/hivewallet"]];
}
Expand Down
Loading

0 comments on commit b669f7f

Please sign in to comment.