summaryrefslogtreecommitdiffstats
path: root/Solsnu.Widget/Views/SmallWidgetView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Solsnu.Widget/Views/SmallWidgetView.swift')
-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 }