From aa1874cfd0e89f53635e3abbe3c43a44ddd8d8b1 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Tue, 20 Aug 2024 20:18:19 -0700 Subject: [PATCH] Moor padding --- .../Weather/LocalWeatherConditions.swift | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Meshtastic/Views/Helpers/Weather/LocalWeatherConditions.swift b/Meshtastic/Views/Helpers/Weather/LocalWeatherConditions.swift index 612641fe..eb93897f 100644 --- a/Meshtastic/Views/Helpers/Weather/LocalWeatherConditions.swift +++ b/Meshtastic/Views/Helpers/Weather/LocalWeatherConditions.swift @@ -100,9 +100,9 @@ struct WeatherConditionsCompactWidget: View { Text(temperature) .font(temperature.length < 4 ? .system(size: 80) : .system(size: 60) ) } - .padding(.horizontal, 5) + .padding(10) .frame(maxWidth: .infinity) - .frame(height: 150) + .frame(height: 175) .background(.tertiary, in: RoundedRectangle(cornerRadius: 20, style: .continuous)) } } @@ -122,9 +122,9 @@ struct HumidityCompactWidget: View { .fixedSize(horizontal: false, vertical: true) .font(.caption) } - .padding(.horizontal, 5) + .padding(10) .frame(maxWidth: .infinity) - .frame(height: 150) + .frame(height: 175) .background(.tertiary, in: RoundedRectangle(cornerRadius: 20, style: .continuous)) } } @@ -136,16 +136,16 @@ struct PressureCompactWidget: View { var body: some View { VStack(alignment: .leading) { Label { Text("PRESSURE") } icon: { Image(systemName: "gauge").symbolRenderingMode(.multicolor) } - .font(.callout) + .font(.caption) Text(pressure) .font(pressure.length < 7 ? .system(size: 35) : .system(size: 30) ) Text(low ? "LOW" : "HIGH") .padding(.bottom) Text(unit) } - .padding(.horizontal, 5) + .padding(10) .frame(maxWidth: .infinity) - .frame(height: 150) + .frame(height: 175) .background(.tertiary, in: RoundedRectangle(cornerRadius: 20, style: .continuous)) } } @@ -158,14 +158,15 @@ struct WindCompactWidget: View { VStack(alignment: .leading) { Label { Text("WIND") } icon: { Image(systemName: "wind").foregroundColor(.accentColor) } Text("\(direction)") + .font(.caption) .padding(.bottom, 10) Text(speed) .font(.system(size: 35)) Text("Gusts \(gust)") } - .padding(.horizontal, 5) + .padding(10) .frame(maxWidth: .infinity) - .frame(height: 150) + .frame(height: 175) .background(.tertiary, in: RoundedRectangle(cornerRadius: 20, style: .continuous)) } }