forked from LoopKit/Loop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUIColor.swift
More file actions
78 lines (52 loc) · 2.54 KB
/
Copy pathUIColor.swift
File metadata and controls
78 lines (52 loc) · 2.54 KB
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
//
// UIColor.swift
// Naterade
//
// Created by Nathan Racklyeft on 1/23/16.
// Copyright © 2016 Nathan Racklyeft. All rights reserved.
//
import UIKit
extension UIColor {
@nonobjc public static var tintColor: UIColor? = nil
@nonobjc public static let secondaryLabelColor = UIColor.HIGGrayColor()
@nonobjc public static let cellBackgroundColor = UIColor(white: 239 / 255, alpha: 1)
@nonobjc public static let gridColor = UIColor(white: 193 / 255, alpha: 1)
@nonobjc public static let glucoseTintColor = UIColor(red: 0 / 255, green: 176 / 255, blue: 255 / 255, alpha: 1)
@nonobjc public static let IOBTintColor = UIColor.HIGOrangeColor()
@nonobjc public static let COBTintColor = UIColor(red: 99 / 255, green: 218 / 255, blue: 56 / 255, alpha: 1)
@nonobjc public static let doseTintColor = UIColor.HIGOrangeColor()
@nonobjc public static let freshColor = UIColor.HIGGreenColor()
@nonobjc public static let agingColor = UIColor.HIGYellowColor()
@nonobjc public static let staleColor = UIColor.HIGRedColor()
@nonobjc public static let unknownColor = UIColor(red: 198 / 255, green: 199 / 255, blue: 201 / 255, alpha: 1)
@nonobjc public static let deleteColor = UIColor.HIGRedColor()
// MARK: - HIG colors
// See: https://developer.apple.com/ios/human-interface-guidelines/visual-design/color/
private static func HIGTealBlueColor() -> UIColor {
return UIColor(red: 90 / 255, green: 200 / 255, blue: 250 / 255, alpha: 1)
}
private static func HIGYellowColor() -> UIColor {
return UIColor(red: 1, green: 204 / 255, blue: 0, alpha: 1)
}
private static func HIGOrangeColor() -> UIColor {
return UIColor(red: 1, green: 149 / 255, blue: 0 / 255, alpha: 1)
}
private static func HIGPinkColor() -> UIColor {
return UIColor(red: 1, green: 45 / 255, blue: 85 / 255, alpha: 1)
}
private static func HIGBlueColor() -> UIColor {
return UIColor(red: 0, green: 122 / 255, blue: 1, alpha: 1)
}
private static func HIGGreenColor() -> UIColor {
return UIColor(red: 76 / 255, green: 217 / 255, blue: 100 / 255, alpha: 1)
}
private static func HIGRedColor() -> UIColor {
return UIColor(red: 1, green: 59 / 255, blue: 48 / 255, alpha: 1)
}
private static func HIGPurpleColor() -> UIColor {
return UIColor(red: 88 / 255, green: 86 / 255, blue: 214 / 255, alpha: 1)
}
private static func HIGGrayColor() -> UIColor {
return UIColor(red: 142 / 255, green: 143 / 255, blue: 147 / 255, alpha: 1)
}
}