]> git.r.bdr.sh - rbdr/map/blame - Map/Presentation/Theme/Color+theme.swift
Address the lint warnings
[rbdr/map] / Map / Presentation / Theme / Color+theme.swift
CommitLineData
be897af3 1// Copyright (C) 2024 Rubén Beltrán del Río
98f09799 2
be897af3
RBR
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.
98f09799 7
be897af3
RBR
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.
98f09799 12
be897af3
RBR
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.
fdb4633d
RBR
15import SwiftUI
16
17extension Color {
be897af3 18 struct Theme {
fdb4633d
RBR
19 static let darkSlate = Color("Dark Slate")
20 static let jasperRed = Color("Jasper Red")
21 static let olympicBlue = Color("Olympic Blue")
e2c37ac1
RBR
22 static let lightPorcelainGreen = Color("Light Porcelain Green")
23 static let naplesYellow = Color("Naples Yellow")
24 static let hermosaPink = Color("Hermosa Pink")
fdb4633d
RBR
25 static let neutralGray = Color("Neutral Gray")
26 static let lightNeutralGray = Color("Light Neutral Gray")
27 static let darkNeutralGray = Color("Dark Neutral Gray")
e2c37ac1 28 static let darkerNeutralGray = Color("Darker Neutral Gray")
fdb4633d 29 }
e2c37ac1 30
be897af3
RBR
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
fdb4633d 38 static let stageBackground = Color.white
e2c37ac1 39 static let groupColors = [
be897af3
RBR
40 Color.Theme.olympicBlue,
41 Color.Theme.jasperRed,
42 Color.Theme.lightPorcelainGreen,
43 Color.Theme.naplesYellow,
44 Color.Theme.hermosaPink,
e2c37ac1 45 ]
fdb4633d 46 }
e2c37ac1 47
be897af3 48 struct UI {
fdb4633d
RBR
49 static let foreground = Color("Foreground")
50 static let background = Color("Background")
51 }
52}