]> git.r.bdr.sh - rbdr/map/blob - Map/Presentation/Theme/Color+theme.swift
Add some debouncing
[rbdr/map] / Map / Presentation / Theme / Color+theme.swift
1 // Copyright (C) 2024 Rubén Beltrán del Río
2
3 // This program is free software: you can redistribute it and/or modify
4 // it under the terms of the GNU General Public License as published by
5 // the Free Software Foundation, either version 3 of the License, or
6 // (at your option) any later version.
7
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
12
13 // You should have received a copy of the GNU General Public License
14 // along with this program. If not, see https://map.tranquil.systems.
15 import SwiftUI
16
17 extension Color {
18 struct Theme {
19 static let darkSlate = Color("Dark Slate")
20 static let jasperRed = Color("Jasper Red")
21 static let olympicBlue = Color("Olympic Blue")
22 static let lightPorcelainGreen = Color("Light Porcelain Green")
23 static let naplesYellow = Color("Naples Yellow")
24 static let hermosaPink = Color("Hermosa Pink")
25 static let neutralGray = Color("Neutral Gray")
26 static let lightNeutralGray = Color("Light Neutral Gray")
27 static let darkNeutralGray = Color("Dark Neutral Gray")
28 static let darkerNeutralGray = Color("Darker Neutral Gray")
29 }
30
31 struct Map {
32 static let labelColor = Color.Theme.darkSlate
33 static let axisColor = Color.Theme.darkSlate
34 static let vertexColor = Color.Theme.darkSlate
35 static let blockerColor = Color.Theme.jasperRed
36 static let opportunityColor = Color.Theme.olympicBlue
37 static let stageForeground = Color.Theme.lightNeutralGray
38 static let stageBackground = Color.white
39 static let groupColors = [
40 Color.Theme.olympicBlue,
41 Color.Theme.jasperRed,
42 Color.Theme.lightPorcelainGreen,
43 Color.Theme.naplesYellow,
44 Color.Theme.hermosaPink,
45 ]
46 }
47
48 struct UI {
49 static let foreground = Color("Foreground")
50 static let background = Color("Background")
51 }
52 }