-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
167 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// GrayBarButtonItem.h | ||
// unnamed | ||
// | ||
// Created by Bruce Ng on 2/20/15. | ||
// Copyright (c) 2015 com.yahoo. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface GrayBarButtonItem : UIBarButtonItem | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// | ||
// GrayBarButtonItem.m | ||
// unnamed | ||
// | ||
// Created by Bruce Ng on 2/20/15. | ||
// Copyright (c) 2015 com.yahoo. All rights reserved. | ||
// | ||
|
||
#import "GrayBarButtonItem.h" | ||
|
||
@implementation GrayBarButtonItem | ||
- (void) setup { | ||
[self setTitleTextAttributes: | ||
[NSDictionary dictionaryWithObjectsAndKeys: | ||
[UIColor lightGrayColor], | ||
NSForegroundColorAttributeName, | ||
nil] | ||
forState:UIControlStateNormal]; | ||
} | ||
|
||
- (id) initWithBarButtonSystemItem:(UIBarButtonSystemItem)systemItem target:(id)target action:(SEL)action { | ||
self = [super initWithBarButtonSystemItem:systemItem target:target action:action]; | ||
[self setup]; | ||
return self; | ||
} | ||
|
||
- (id)initWithCoder:(NSCoder *)aDecoder { | ||
self = [super initWithCoder:aDecoder]; | ||
[self setup]; | ||
return self; | ||
} | ||
|
||
- (id)init { | ||
self = [super init]; | ||
[self setup]; | ||
return self; | ||
} | ||
|
||
- (id)initWithTitle:(NSString *)title style:(UIBarButtonItemStyle)style target:(id)target action:(SEL)action { | ||
self = [super initWithTitle:title style:style target:target action:action]; | ||
[self setup]; | ||
return self; | ||
} | ||
|
||
- (id)initWithCustomView:(UIView *)customView { | ||
self = [super initWithCustomView:customView]; | ||
[self setup]; | ||
return self; | ||
} | ||
|
||
- (id)initWithImage:(UIImage *)image style:(UIBarButtonItemStyle)style target:(id)target action:(SEL)action { | ||
self = [super initWithImage:image style:style target:target action:action]; | ||
[self setup]; | ||
return self; | ||
} | ||
|
||
- (id)initWithImage:(UIImage *)image landscapeImagePhone:(UIImage *)landscapeImagePhone style:(UIBarButtonItemStyle)style target:(id)target action:(SEL)action { | ||
self = [super initWithImage:image landscapeImagePhone:landscapeImagePhone style:style target:target action:action]; | ||
[self setup]; | ||
return self; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// UIColor+AppBgColor.h | ||
// unnamed | ||
// | ||
// Created by Bruce Ng on 2/20/15. | ||
// Copyright (c) 2015 com.yahoo. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface UIColor (AppBgColor) | ||
+ (UIColor *)appBgColor; | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// UIColor+AppBgColor.m | ||
// unnamed | ||
// | ||
// Created by Bruce Ng on 2/20/15. | ||
// Copyright (c) 2015 com.yahoo. All rights reserved. | ||
// | ||
|
||
#import "UIColor+AppBgColor.h" | ||
|
||
@implementation UIColor (AppBgColor) | ||
+ (UIColor *)appBgColor { | ||
return [UIColor colorWithRed:246.0/255.0 green:241.0/255.0 blue:234.0/255.0 alpha:1]; | ||
} | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// UIColor+AppTintColor.h | ||
// unnamed | ||
// | ||
// Created by Bruce Ng on 2/20/15. | ||
// Copyright (c) 2015 com.yahoo. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface UIColor (AppTintColor) | ||
+ (UIColor *)appTintColor; | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// UIColor+AppTintColor.m | ||
// unnamed | ||
// | ||
// Created by Bruce Ng on 2/20/15. | ||
// Copyright (c) 2015 com.yahoo. All rights reserved. | ||
// | ||
|
||
#import "UIColor+AppTintColor.h" | ||
|
||
@implementation UIColor (AppTintColor) | ||
+ (UIColor *)appTintColor { | ||
return [UIColor colorWithRed:170.0/255.0 green:20.0/255.0 blue:20.0/255.0 alpha:1]; | ||
} | ||
@end |