summaryrefslogtreecommitdiffstats
path: root/Solsnu.Widget/Views
diff options
context:
space:
mode:
authorivar <i@oiee.no>2026-05-06 21:21:17 +0200
committerivar <i@oiee.no>2026-05-06 21:21:17 +0200
commit54dd55db8c19667939536e18535ac9c45817e442 (patch)
tree7ccb609b16e731c6281aa8d23969fb51c42eb60f /Solsnu.Widget/Views
parentefae4d08083f454975f08a2c0c6871c6a3d41e95 (diff)
downloadsolverv-54dd55db8c19667939536e18535ac9c45817e442.tar.xz
solverv-54dd55db8c19667939536e18535ac9c45817e442.zip
refactor: remove duplicate source files now served from Shared/
Diffstat (limited to 'Solsnu.Widget/Views')
-rw-r--r--Solsnu.Widget/Views/SmallWidgetView.swift5
1 files changed, 1 insertions, 4 deletions
diff --git a/Solsnu.Widget/Views/SmallWidgetView.swift b/Solsnu.Widget/Views/SmallWidgetView.swift
index 86aa913..16ca102 100644
--- a/Solsnu.Widget/Views/SmallWidgetView.swift
+++ b/Solsnu.Widget/Views/SmallWidgetView.swift
@@ -10,22 +10,19 @@ struct SmallWidgetView: View {
var body: some View {
ZStack {
Image(entry.def.bg)
- .resizable()
- .scaledToFill()
VStack(spacing: 8) {
Text("\(entry.def.daysUntilNext())")
.font(.system(size: 26, weight: .bold, design: .serif))
+ .position(x: 50,y: 50)
.foregroundStyle(Color(red: 0.152, green: 0.136, blue: 0.056))
.italic()
- if !entry.def.sunriseFormatted.isEmpty && !entry.def.sunsetFormatted.isEmpty {
HStack(spacing: 4) {
Text("↑ \(entry.def.sunriseFormatted)")
Text("↓ \(entry.def.sunsetFormatted)")
}
.font(.system(size: 11, weight: .regular))
.foregroundStyle(Color(red: 0.152, green: 0.136, blue: 0.056))
- }
}
}
.containerBackground(for: .widget, alignment: .center) { Color.clear }