31 lines
969 B
Swift
31 lines
969 B
Swift
import SwiftUI
|
|
import WidgetKit
|
|
|
|
struct AndromidaWidgetView: View {
|
|
var entry: WidgetEntry
|
|
@Environment(\.widgetFamily) var family
|
|
|
|
var body: some View {
|
|
switch family {
|
|
case .systemSmall:
|
|
SmallWidgetView(entry: entry)
|
|
.widgetURL(URL(string: "andromida://today"))
|
|
case .systemMedium:
|
|
MediumWidgetView(entry: entry)
|
|
.widgetURL(URL(string: "andromida://today"))
|
|
case .systemLarge:
|
|
LargeWidgetView(entry: entry)
|
|
.widgetURL(URL(string: "andromida://today"))
|
|
default:
|
|
SmallWidgetView(entry: entry)
|
|
.widgetURL(URL(string: "andromida://today"))
|
|
}
|
|
}
|
|
}
|
|
|
|
// MARK: - Branding Colors Helper
|
|
extension Color {
|
|
static let brandingPrimary = Color(red: 0.12, green: 0.09, blue: 0.08)
|
|
static let brandingAccent = Color(red: 0.95, green: 0.60, blue: 0.45) // Matches the orange-ish accent in your app
|
|
}
|