forked from soffes/cheddar-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUIColor+CheddariOSAdditions.m
47 lines (31 loc) · 976 Bytes
/
UIColor+CheddariOSAdditions.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// UIColor+CheddariOSAdditions.m
// Cheddar for iOS
//
// Created by Sam Soffes on 4/8/12.
// Copyright (c) 2012 Nothing Magical. All rights reserved.
//
#import "UIColor+CheddariOSAdditions.h"
@implementation UIColor (CheddariOSAdditions)
+ (UIColor *)cheddarArchesColor {
return [self colorWithPatternImage:[UIImage imageNamed:@"arches"]];
}
+ (UIColor *)cheddarTextColor {
return [self colorWithWhite:0.267f alpha:1.0f];
}
+ (UIColor *)cheddarLightTextColor {
return [self colorWithWhite:0.651f alpha:1.0f];
}
+ (UIColor *)cheddarBlueColor {
return [self colorWithRed:0.031f green:0.506f blue:0.702f alpha:1.0f];
}
+ (UIColor *)cheddarSteelColor {
return [self colorWithRed:0.376f green:0.408f blue:0.463f alpha:1.0f];
}
+ (UIColor *)cheddarHighlightColor {
return [self colorWithRed:1.000f green:0.996f blue:0.792f alpha:1.0f];
}
+ (UIColor *)cheddarOrangeColor {
return [self colorWithRed:1.000f green:0.447f blue:0.263f alpha:1.0f];
}
@end