forked from LoopKit/Loop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathColor.swift
More file actions
57 lines (35 loc) · 1.37 KB
/
Color.swift
File metadata and controls
57 lines (35 loc) · 1.37 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
//
// Color.swift
// LoopUI
//
// Created by Nathaniel Hamming on 2020-07-28.
// Copyright © 2020 LoopKit Authors. All rights reserved.
//
import SwiftUI
// MARK: - Color palette for common elements
extension Color {
static let carbs = Color("carbs")
static let fresh = Color("fresh")
static let glucose = Color("glucose")
static let insulin = Color("insulin")
// The loopAccent color is intended to be use as the app accent color.
public static let loopAccent = Color("accent")
public static let warning = Color("warning")
}
// Color version of the UIColor context colors
extension Color {
public static let agingColor = warning
public static let axisLabelColor = secondary
public static let axisLineColor = clear
public static let cellBackgroundColor = Color(UIColor.cellBackgroundColor)
public static let carbTintColor = carbs
public static let critical = red
public static let destructive = critical
public static let glucoseTintColor = glucose
public static let gridColor = Color(UIColor.gridColor)
public static let invalid = critical
public static let insulinTintColor = insulin
public static let pumpStatusNormal = insulin
public static let staleColor = critical
public static let unknownColor = Color(UIColor.unknownColor)
}