-
Notifications
You must be signed in to change notification settings - Fork 0
/
MNLIOSColorPalette.m
102 lines (83 loc) · 2.84 KB
/
MNLIOSColorPalette.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#import "MNLColorInternal.h"
/// @brief
/// A private variable for Red colour.
/// @details
/// This variable is for implement a singleton.
/// @note
/// rgb(255, 59, 48)
static MNLColor *MNLIOSRedColor;
/// @brief
/// A private variable for Orange colour.
/// @details
/// This variable is for implement a singleton.
/// @note
/// rgb(255, 149, 0)
static MNLColor *MNLIOSOrangeColor;
/// @brief
/// A private variable for Yellow colour.
/// @details
/// This variable is for implement a singleton.
/// @note
/// rgb(255, 204, 0)
static MNLColor *MNLIOSYellowColor;
/// @brief
/// A private variable for Green colour.
/// @details
/// This variable is for implement a singleton.
/// @note
/// rgb(76, 217, 100)
static MNLColor *MNLIOSGreenColor;
/// @brief
/// A private variable for Teal Blue colour.
/// @details
/// This variable is for implement a singleton.
/// @note
/// rgb(90, 200, 250)
static MNLColor *MNLIOSTealBlueColor;
/// @brief
/// A private variable for Blue colour.
/// @details
/// This variable is for implement a singleton.
/// @note
/// rgb(0, 122, 255)
static MNLColor *MNLIOSBlueColor;
/// @brief
/// A private variable for Purple colour.
/// @details
/// This variable is for implement a singleton.
/// @note
/// rgb(88, 86, 214)
static MNLColor *MNLIOSPurpleColor;
/// @brief
/// A private variable for Pink colour.
/// @details
/// This variable is for implement a singleton.
/// @note
/// rgb(255, 45, 85)
static MNLColor *MNLIOSPinkColor;
@implementation MNLIOSColorPalette
+ (MNLColor *)redColor {
MNLReturnSingletonColor([[MNLColor alloc] initWithHexadecimalRed:255 green:59 blue:48 colorSpace:MNLColorSpaceSRGB], MNLIOSRedColor);
}
+ (MNLColor *)orangeColor {
MNLReturnSingletonColor([[MNLColor alloc] initWithHexadecimalRed:255 green:149 blue:0 colorSpace:MNLColorSpaceSRGB], MNLIOSOrangeColor);
}
+ (MNLColor *)yellowColor {
MNLReturnSingletonColor([[MNLColor alloc] initWithHexadecimalRed:255 green:204 blue:0 colorSpace:MNLColorSpaceSRGB], MNLIOSYellowColor);
}
+ (MNLColor *)greenColor {
MNLReturnSingletonColor([[MNLColor alloc] initWithHexadecimalRed:76 green:217 blue:100 colorSpace:MNLColorSpaceSRGB], MNLIOSGreenColor);
}
+ (MNLColor *)tealBlueColor {
MNLReturnSingletonColor([[MNLColor alloc] initWithHexadecimalRed:90 green:200 blue:250 colorSpace:MNLColorSpaceSRGB], MNLIOSTealBlueColor);
}
+ (MNLColor *)blueColor {
MNLReturnSingletonColor([[MNLColor alloc] initWithHexadecimalRed:0 green:122 blue:255 colorSpace:MNLColorSpaceSRGB], MNLIOSBlueColor);
}
+ (MNLColor *)purpleColor {
MNLReturnSingletonColor([[MNLColor alloc] initWithHexadecimalRed:88 green:86 blue:214 colorSpace:MNLColorSpaceSRGB], MNLIOSPurpleColor);
}
+ (MNLColor *)pinkColor {
MNLReturnSingletonColor([[MNLColor alloc] initWithHexadecimalRed:255 green:45 blue:85 colorSpace:MNLColorSpaceSRGB], MNLIOSPinkColor);
}
@end