aboutsummaryrefslogtreecommitdiff
path: root/Map/Presentation/Base Components/MapRender/MapAxes.swift
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2024-09-16 20:37:27 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2024-09-16 20:37:27 +0200
commitbe897af3bd7cc010c1aa496d5b1faf8a2e1f82ed (patch)
tree1420ad1ea92f9125bfd1d775913dd8dbc310dae6 /Map/Presentation/Base Components/MapRender/MapAxes.swift
parent144915635bdfc90445321189914929a911fe77d4 (diff)
Address the lint warnings
Diffstat (limited to 'Map/Presentation/Base Components/MapRender/MapAxes.swift')
-rw-r--r--Map/Presentation/Base Components/MapRender/MapAxes.swift54
1 files changed, 26 insertions, 28 deletions
diff --git a/Map/Presentation/Base Components/MapRender/MapAxes.swift b/Map/Presentation/Base Components/MapRender/MapAxes.swift
index bdbafbd..4f64135 100644
--- a/Map/Presentation/Base Components/MapRender/MapAxes.swift
+++ b/Map/Presentation/Base Components/MapRender/MapAxes.swift
@@ -1,19 +1,17 @@
-/*
- Copyright (C) 2024 Rubén Beltrán del Río
+// Copyright (C) 2024 Rubén Beltrán del Río
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program. If not, see https://map.tranquil.systems.
- */
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see https://map.tranquil.systems.
import SwiftUI
struct MapAxes: View {
@@ -35,14 +33,14 @@ struct MapAxes: View {
path.addLine(to: CGPoint(x: mapSize.width, y: mapSize.height))
path.move(to: CGPoint(x: mapSize.width, y: mapSize.height))
path.closeSubpath()
- }.stroke(Color.map.axisColor, lineWidth: lineWidth * 2)
+ }.stroke(Color.Map.axisColor, lineWidth: lineWidth * 2)
// Y Labels
- Text("Visible").font(.theme.axisLabel).foregroundColor(.map.labelColor).rotationEffect(
+ Text("Visible").font(.Theme.axisLabel).foregroundColor(.Map.labelColor).rotationEffect(
Angle(degrees: -90.0)
)
.offset(CGSize(width: -35.0, height: 0.0))
- Text("Invisible").font(.theme.axisLabel).foregroundColor(.map.labelColor).rotationEffect(
+ Text("Invisible").font(.Theme.axisLabel).foregroundColor(.Map.labelColor).rotationEffect(
Angle(degrees: -90.0)
)
.offset(CGSize(width: -40.0, height: mapSize.height - 20))
@@ -50,37 +48,37 @@ struct MapAxes: View {
// X Labels
Text("Uncharted")
- .font(.theme.axisLabel)
- .foregroundColor(.map.labelColor)
+ .font(.Theme.axisLabel)
+ .foregroundColor(.Map.labelColor)
.frame(width: mapSize.width / 4, height: stageHeight / 2.0, alignment: .topLeading)
.offset(CGSize(width: 0.0, height: -stageHeight / 4.0))
Text("Industrialised")
- .font(.theme.axisLabel)
- .foregroundColor(.map.labelColor)
+ .font(.Theme.axisLabel)
+ .foregroundColor(.Map.labelColor)
.frame(width: mapSize.width / 4, height: stageHeight / 2.0, alignment: .topLeading)
.offset(CGSize(width: mapSize.width - 100.0, height: -stageHeight / 4.0))
Text(evolution.i)
- .font(.theme.axisLabel)
- .foregroundColor(.map.labelColor)
+ .font(.Theme.axisLabel)
+ .foregroundColor(.Map.labelColor)
.frame(width: w(stages[0]), height: stageHeight, alignment: .topLeading)
.offset(CGSize(width: 0.0, height: mapSize.height + padding))
Text(evolution.ii)
- .font(.theme.axisLabel)
- .foregroundColor(.map.labelColor)
+ .font(.Theme.axisLabel)
+ .foregroundColor(.Map.labelColor)
.frame(width: w(stages[1]) - w(stages[0]), height: stageHeight, alignment: .topLeading)
.offset(CGSize(width: w(stages[0]), height: mapSize.height + padding))
Text(evolution.iii)
- .font(.theme.axisLabel)
- .foregroundColor(.map.labelColor)
+ .font(.Theme.axisLabel)
+ .foregroundColor(.Map.labelColor)
.frame(width: w(stages[2]) - w(stages[1]), height: stageHeight, alignment: .topLeading)
.offset(CGSize(width: w(stages[1]), height: mapSize.height + padding))
Text(evolution.iv)
- .font(.theme.axisLabel)
- .foregroundColor(.map.labelColor)
+ .font(.Theme.axisLabel)
+ .foregroundColor(.Map.labelColor)
.frame(width: mapSize.width - w(stages[2]), height: stageHeight, alignment: .topLeading)
.offset(CGSize(width: w(stages[2]), height: mapSize.height + padding))
}