Skip to content

Commit

Permalink
Completed theming of UI elements.
Browse files Browse the repository at this point in the history
  • Loading branch information
weiran committed May 4, 2013
1 parent 7b1f0e0 commit 2c3c098
Show file tree
Hide file tree
Showing 17 changed files with 138 additions and 10 deletions.
54 changes: 54 additions & 0 deletions Hackers.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,19 @@
243D1F5D17354A6F0033BC0F /* share-icon-darktheme@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 243D1F5B17354A6F0033BC0F /* share-icon-darktheme@2x.png */; };
243D1F601735546E0033BC0F /* WZMenuHeaderView.m in Sources */ = {isa = PBXBuildFile; fileRef = 243D1F5F1735546D0033BC0F /* WZMenuHeaderView.m */; };
243D1F6317355BF70033BC0F /* WZMenuCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 243D1F6217355BF70033BC0F /* WZMenuCell.m */; };
243D1F701735613E0033BC0F /* back-icon-darktheme.png in Resources */ = {isa = PBXBuildFile; fileRef = 243D1F641735613C0033BC0F /* back-icon-darktheme.png */; };
243D1F711735613E0033BC0F /* back-icon-darktheme@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 243D1F651735613C0033BC0F /* back-icon-darktheme@2x.png */; };
243D1F721735613E0033BC0F /* forward-icon-darktheme.png in Resources */ = {isa = PBXBuildFile; fileRef = 243D1F661735613C0033BC0F /* forward-icon-darktheme.png */; };
243D1F731735613E0033BC0F /* forward-icon-darktheme@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 243D1F671735613C0033BC0F /* forward-icon-darktheme@2x.png */; };
243D1F741735613E0033BC0F /* mobilizer-icon-darktheme.png in Resources */ = {isa = PBXBuildFile; fileRef = 243D1F681735613D0033BC0F /* mobilizer-icon-darktheme.png */; };
243D1F751735613E0033BC0F /* mobilizer-icon-darktheme@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 243D1F691735613D0033BC0F /* mobilizer-icon-darktheme@2x.png */; };
243D1F761735613E0033BC0F /* mobilizer-icon-highlighted-darktheme.png in Resources */ = {isa = PBXBuildFile; fileRef = 243D1F6A1735613D0033BC0F /* mobilizer-icon-highlighted-darktheme.png */; };
243D1F771735613E0033BC0F /* mobilizer-icon-highlighted-darktheme@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 243D1F6B1735613D0033BC0F /* mobilizer-icon-highlighted-darktheme@2x.png */; };
243D1F781735613E0033BC0F /* refresh-icon-darktheme.png in Resources */ = {isa = PBXBuildFile; fileRef = 243D1F6C1735613D0033BC0F /* refresh-icon-darktheme.png */; };
243D1F791735613E0033BC0F /* refresh-icon-darktheme@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 243D1F6D1735613D0033BC0F /* refresh-icon-darktheme@2x.png */; };
243D1F7A1735613E0033BC0F /* x-darktheme.png in Resources */ = {isa = PBXBuildFile; fileRef = 243D1F6E1735613E0033BC0F /* x-darktheme.png */; };
243D1F7B1735613E0033BC0F /* x-darktheme@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 243D1F6F1735613E0033BC0F /* x-darktheme@2x.png */; };
243D1F7E173562340033BC0F /* WZToolbar.m in Sources */ = {isa = PBXBuildFile; fileRef = 243D1F7D173562330033BC0F /* WZToolbar.m */; };
245F73391733FEEB00878795 /* WZNavigationBar.m in Sources */ = {isa = PBXBuildFile; fileRef = 245F73381733FEEB00878795 /* WZNavigationBar.m */; };
245F85D116690AE3000D3EE1 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 245F85D016690AE3000D3EE1 /* Security.framework */; };
2463930D16E0AA30005114ED /* WZNotify.m in Sources */ = {isa = PBXBuildFile; fileRef = 2463930C16E0AA30005114ED /* WZNotify.m */; };
Expand Down Expand Up @@ -189,6 +202,20 @@
243D1F5F1735546D0033BC0F /* WZMenuHeaderView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WZMenuHeaderView.m; sourceTree = "<group>"; };
243D1F6117355BF70033BC0F /* WZMenuCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WZMenuCell.h; sourceTree = "<group>"; };
243D1F6217355BF70033BC0F /* WZMenuCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WZMenuCell.m; sourceTree = "<group>"; };
243D1F641735613C0033BC0F /* back-icon-darktheme.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "back-icon-darktheme.png"; sourceTree = "<group>"; };
243D1F651735613C0033BC0F /* back-icon-darktheme@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "back-icon-darktheme@2x.png"; sourceTree = "<group>"; };
243D1F661735613C0033BC0F /* forward-icon-darktheme.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "forward-icon-darktheme.png"; sourceTree = "<group>"; };
243D1F671735613C0033BC0F /* forward-icon-darktheme@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "forward-icon-darktheme@2x.png"; sourceTree = "<group>"; };
243D1F681735613D0033BC0F /* mobilizer-icon-darktheme.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "mobilizer-icon-darktheme.png"; sourceTree = "<group>"; };
243D1F691735613D0033BC0F /* mobilizer-icon-darktheme@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "mobilizer-icon-darktheme@2x.png"; sourceTree = "<group>"; };
243D1F6A1735613D0033BC0F /* mobilizer-icon-highlighted-darktheme.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "mobilizer-icon-highlighted-darktheme.png"; sourceTree = "<group>"; };
243D1F6B1735613D0033BC0F /* mobilizer-icon-highlighted-darktheme@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "mobilizer-icon-highlighted-darktheme@2x.png"; sourceTree = "<group>"; };
243D1F6C1735613D0033BC0F /* refresh-icon-darktheme.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "refresh-icon-darktheme.png"; sourceTree = "<group>"; };
243D1F6D1735613D0033BC0F /* refresh-icon-darktheme@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "refresh-icon-darktheme@2x.png"; sourceTree = "<group>"; };
243D1F6E1735613E0033BC0F /* x-darktheme.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "x-darktheme.png"; sourceTree = "<group>"; };
243D1F6F1735613E0033BC0F /* x-darktheme@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "x-darktheme@2x.png"; sourceTree = "<group>"; };
243D1F7C173562330033BC0F /* WZToolbar.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WZToolbar.h; sourceTree = "<group>"; };
243D1F7D173562330033BC0F /* WZToolbar.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WZToolbar.m; sourceTree = "<group>"; };
245F73371733FEEB00878795 /* WZNavigationBar.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WZNavigationBar.h; sourceTree = "<group>"; };
245F73381733FEEB00878795 /* WZNavigationBar.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WZNavigationBar.m; sourceTree = "<group>"; };
245F85D016690AE3000D3EE1 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
Expand Down Expand Up @@ -380,6 +407,18 @@
24AA08F8165187EA00FA9FEC /* greyButton@2x.png */,
24AA08F9165187EA00FA9FEC /* greyButtonHighlight.png */,
24AA08FA165187EA00FA9FEC /* greyButtonHighlight@2x.png */,
243D1F641735613C0033BC0F /* back-icon-darktheme.png */,
243D1F651735613C0033BC0F /* back-icon-darktheme@2x.png */,
243D1F661735613C0033BC0F /* forward-icon-darktheme.png */,
243D1F671735613C0033BC0F /* forward-icon-darktheme@2x.png */,
243D1F681735613D0033BC0F /* mobilizer-icon-darktheme.png */,
243D1F691735613D0033BC0F /* mobilizer-icon-darktheme@2x.png */,
243D1F6A1735613D0033BC0F /* mobilizer-icon-highlighted-darktheme.png */,
243D1F6B1735613D0033BC0F /* mobilizer-icon-highlighted-darktheme@2x.png */,
243D1F6C1735613D0033BC0F /* refresh-icon-darktheme.png */,
243D1F6D1735613D0033BC0F /* refresh-icon-darktheme@2x.png */,
243D1F6E1735613E0033BC0F /* x-darktheme.png */,
243D1F6F1735613E0033BC0F /* x-darktheme@2x.png */,
24374A0C172C16A5007762FC /* NNInstapaperActivity@2x~ipad.png */,
24374A0D172C16A5007762FC /* NNInstapaperActivity@2x~iphone.png */,
24374A0E172C16A5007762FC /* NNInstapaperActivity~ipad.png */,
Expand Down Expand Up @@ -424,6 +463,8 @@
2475EC6916DF617500FEAD45 /* WZNavigationController.m */,
245F73371733FEEB00878795 /* WZNavigationBar.h */,
245F73381733FEEB00878795 /* WZNavigationBar.m */,
243D1F7C173562330033BC0F /* WZToolbar.h */,
243D1F7D173562330033BC0F /* WZToolbar.m */,
);
name = Main;
sourceTree = "<group>";
Expand Down Expand Up @@ -867,6 +908,18 @@
243D1F59173549380033BC0F /* back-arrow-darktheme@2x.png in Resources */,
243D1F5C17354A6F0033BC0F /* share-icon-darktheme.png in Resources */,
243D1F5D17354A6F0033BC0F /* share-icon-darktheme@2x.png in Resources */,
243D1F701735613E0033BC0F /* back-icon-darktheme.png in Resources */,
243D1F711735613E0033BC0F /* back-icon-darktheme@2x.png in Resources */,
243D1F721735613E0033BC0F /* forward-icon-darktheme.png in Resources */,
243D1F731735613E0033BC0F /* forward-icon-darktheme@2x.png in Resources */,
243D1F741735613E0033BC0F /* mobilizer-icon-darktheme.png in Resources */,
243D1F751735613E0033BC0F /* mobilizer-icon-darktheme@2x.png in Resources */,
243D1F761735613E0033BC0F /* mobilizer-icon-highlighted-darktheme.png in Resources */,
243D1F771735613E0033BC0F /* mobilizer-icon-highlighted-darktheme@2x.png in Resources */,
243D1F781735613E0033BC0F /* refresh-icon-darktheme.png in Resources */,
243D1F791735613E0033BC0F /* refresh-icon-darktheme@2x.png in Resources */,
243D1F7A1735613E0033BC0F /* x-darktheme.png in Resources */,
243D1F7B1735613E0033BC0F /* x-darktheme@2x.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -947,6 +1000,7 @@
243D1F51173534310033BC0F /* UIImage+Theme.m in Sources */,
243D1F601735546E0033BC0F /* WZMenuHeaderView.m in Sources */,
243D1F6317355BF70033BC0F /* WZMenuCell.m in Sources */,
243D1F7E173562340033BC0F /* WZToolbar.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
Binary file added Hackers/Images/back-icon-darktheme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Hackers/Images/back-icon-darktheme@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Hackers/Images/forward-icon-darktheme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Hackers/Images/forward-icon-darktheme@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Hackers/Images/mobilizer-icon-darktheme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Hackers/Images/mobilizer-icon-darktheme@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Hackers/Images/refresh-icon-darktheme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Hackers/Images/refresh-icon-darktheme@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Hackers/Images/x-darktheme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Hackers/Images/x-darktheme@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions Hackers/WZToolbar.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// WZToolbar.h
// Hackers
//
// Created by Weiran Zhang on 04/05/2013.
// Copyright (c) 2013 Weiran Zhang. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface WZToolbar : UIToolbar

@end
41 changes: 41 additions & 0 deletions Hackers/WZToolbar.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
//
// WZToolbar.m
// Hackers
//
// Created by Weiran Zhang on 04/05/2013.
// Copyright (c) 2013 Weiran Zhang. All rights reserved.
//

#import <QuartzCore/QuartzCore.h>

#import "WZToolbar.h"

@implementation WZToolbar

- (void)layoutSubviews {
[super layoutSubviews];
[self setTheme];
}

- (void)setTheme {
self.layer.shadowColor = [[UIColor blackColor] CGColor];
self.layer.shadowOffset = CGSizeMake(0.0f, 1.0f);
self.layer.shadowRadius = 2.0f;
self.layer.shadowOpacity = 1.0f;
}

- (void)drawRect:(CGRect)rect {
//// Color Declarations
UIColor* fillColor = [WZTheme navigationColor];

//// Frames
CGRect frame = self.bounds;

//// Rectangle Drawing
UIBezierPath* rectanglePath = [UIBezierPath bezierPathWithRoundedRect: CGRectMake(CGRectGetMinX(frame), CGRectGetMinY(frame), CGRectGetWidth(frame), CGRectGetHeight(frame)) byRoundingCorners: UIRectCornerBottomLeft | UIRectCornerBottomRight cornerRadii: CGSizeMake(3, 3)];
[rectanglePath closePath];
[fillColor setFill];
[rectanglePath fill];
}

@end
26 changes: 23 additions & 3 deletions Hackers/WZWebView.xib
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
<data>
<int key="IBDocument.SystemTarget">1552</int>
<string key="IBDocument.SystemVersion">12C60</string>
<string key="IBDocument.SystemVersion">12D78</string>
<string key="IBDocument.InterfaceBuilderVersion">3084</string>
<string key="IBDocument.AppKitVersion">1187.34</string>
<string key="IBDocument.HIToolboxVersion">625.00</string>
<string key="IBDocument.AppKitVersion">1187.37</string>
<string key="IBDocument.HIToolboxVersion">626.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="NS.object.0">2083</string>
Expand Down Expand Up @@ -62,6 +62,7 @@
<string key="NSFrameSize">{320, 44}</string>
<reference key="NSSuperview" ref="726521052"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="974236086"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<array key="IBUIItems">
Expand All @@ -78,6 +79,7 @@
<string key="NSFrame">{{0, 392}, {320, 44}}</string>
<reference key="NSSuperview" ref="726521052"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
Expand Down Expand Up @@ -421,6 +423,7 @@
<string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="-2.CustomClassName">UIResponder</string>
<string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="108.CustomClassName">WZNavigationBar</string>
<string key="108.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<boolean value="NO" key="108.IBViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
<string key="109.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
Expand All @@ -429,6 +432,7 @@
<string key="112.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="116.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="136.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="46.CustomClassName">WZToolbar</string>
<string key="46.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<boolean value="NO" key="46.IBViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
<string key="51.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
Expand Down Expand Up @@ -468,6 +472,22 @@
<string key="minorKey">./Classes/NSLayoutConstraint.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">WZNavigationBar</string>
<string key="superclassName">UINavigationBar</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/WZNavigationBar.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">WZToolbar</string>
<string key="superclassName">UIToolbar</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/WZToolbar.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">WZWebViewController</string>
<string key="superclassName">UIViewController</string>
Expand Down
14 changes: 7 additions & 7 deletions Hackers/WZWebViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ - (void)layoutNavigationBar {
closeButton.frame = CGRectMake(0, 0, kBarButtonIconWidth, kBarButtonIconHeight);
closeButton.accessibilityLabel = @"Close";
[closeButton addTarget:self action:@selector(close:) forControlEvents:UIControlEventTouchUpInside];
[closeButton setImage:[UIImage imageNamed:@"x"] forState:UIControlStateNormal];
[closeButton setImage:[UIImage themeImageNamed:@"x"] forState:UIControlStateNormal];

UIButton *shareButton = [UIButton buttonWithType:UIButtonTypeCustom];
shareButton.frame = CGRectMake(0, 0, kBarButtonIconWidth, kBarButtonIconHeight);
shareButton.accessibilityLabel = @"Share";
[shareButton addTarget:self action:@selector(share:) forControlEvents:UIControlEventTouchUpInside];
[shareButton setImage:[UIImage imageNamed:@"share-icon"] forState:UIControlStateNormal];
[shareButton setImage:[UIImage themeImageNamed:@"share-icon"] forState:UIControlStateNormal];

// _activityIndicatorView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
// _activityIndicatorView.hidden = YES;
Expand Down Expand Up @@ -141,27 +141,27 @@ - (void)layoutToolbar {
UIButton *backButton = [UIButton buttonWithType:UIButtonTypeCustom];
backButton.frame = CGRectMake(0, 0, kBarButtonIconWidth, kBarButtonIconHeight);
backButton.accessibilityLabel = @"Back";
[backButton setImage:[UIImage imageNamed:@"back-icon"] forState:UIControlStateNormal];
[backButton setImage:[UIImage themeImageNamed:@"back-icon"] forState:UIControlStateNormal];
[backButton addTarget:self action:@selector(backButtonPressed:) forControlEvents:UIControlEventTouchUpInside];

UIButton *forwardButton = [UIButton buttonWithType:UIButtonTypeCustom];
forwardButton.frame = CGRectMake(0, 0, kBarButtonIconWidth, kBarButtonIconHeight);
forwardButton.accessibilityLabel = @"Forward";
[forwardButton setImage:[UIImage imageNamed:@"forward-icon"] forState:UIControlStateNormal];
[forwardButton setImage:[UIImage themeImageNamed:@"forward-icon"] forState:UIControlStateNormal];
[forwardButton addTarget:self action:@selector(forwardButtonPressed:) forControlEvents:UIControlEventTouchUpInside];

UIButton *mobilizerButton = [UIButton buttonWithType:UIButtonTypeCustom];
mobilizerButton.frame = CGRectMake(0, 0, kBarButtonIconWidth, kBarButtonIconHeight);
mobilizerButton.accessibilityLabel = @"Mobilizer";
[mobilizerButton setImage:[UIImage imageNamed:@"mobilizer-icon"] forState:UIControlStateNormal];
[mobilizerButton setImage:[UIImage imageNamed:@"mobilizer-icon-highlighted"] forState:UIControlStateSelected];
[mobilizerButton setImage:[UIImage themeImageNamed:@"mobilizer-icon"] forState:UIControlStateNormal];
[mobilizerButton setImage:[UIImage themeImageNamed:@"mobilizer-icon-highlighted"] forState:UIControlStateSelected];
[mobilizerButton addTarget:self action:@selector(mobilizerButtonPressed:) forControlEvents:UIControlEventTouchUpInside];

UIButton *reloadButton = [UIButton buttonWithType:UIButtonTypeCustom];
reloadButton.frame = CGRectMake(0, 0, kBarButtonIconWidth, kBarButtonIconHeight);
reloadButton.accessibilityLabel = @"Reload";
reloadButton.enabled = NO;
[reloadButton setImage:[UIImage imageNamed:@"refresh-icon"] forState:UIControlStateNormal];
[reloadButton setImage:[UIImage themeImageNamed:@"refresh-icon"] forState:UIControlStateNormal];
[reloadButton addTarget:self action:@selector(reloadButtonPressed:) forControlEvents:UIControlEventTouchUpInside];

UIBarButtonItem *fixedSpace = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil];
Expand Down

0 comments on commit 2c3c098

Please sign in to comment.