|
@@ -49,20 +49,6 @@ enum WidgetTemplates {
|
|
|
WidgetQuickAction(id: "settings", title: "Settings", systemImage: "gearshape.fill", destination: .settings),
|
|
WidgetQuickAction(id: "settings", title: "Settings", systemImage: "gearshape.fill", destination: .settings),
|
|
|
WidgetQuickAction(id: "refresh", title: "Refresh", systemImage: "arrow.clockwise", destination: .refreshMeetings)
|
|
WidgetQuickAction(id: "refresh", title: "Refresh", systemImage: "arrow.clockwise", destination: .refreshMeetings)
|
|
|
]
|
|
]
|
|
|
- ),
|
|
|
|
|
- WidgetVariant(
|
|
|
|
|
- id: "meet_large",
|
|
|
|
|
- title: "Google Meet",
|
|
|
|
|
- subtitle: "Your day at a glance",
|
|
|
|
|
- size: .large,
|
|
|
|
|
- quickActions: [
|
|
|
|
|
- WidgetQuickAction(id: "schedule", title: "Schedule", systemImage: "clock.badge.checkmark", destination: .schedule),
|
|
|
|
|
- WidgetQuickAction(id: "calendar", title: "Calendar", systemImage: "calendar", destination: .calendar),
|
|
|
|
|
- WidgetQuickAction(id: "settings", title: "Settings", systemImage: "gearshape.fill", destination: .settings),
|
|
|
|
|
- WidgetQuickAction(id: "refresh", title: "Refresh", systemImage: "arrow.clockwise", destination: .refreshMeetings),
|
|
|
|
|
- WidgetQuickAction(id: "meet", title: "Open Meet", systemImage: "video.fill", destination: .openMeetWeb),
|
|
|
|
|
- WidgetQuickAction(id: "home", title: "Home", systemImage: "house.fill", destination: .joinMeetings)
|
|
|
|
|
- ]
|
|
|
|
|
)
|
|
)
|
|
|
]
|
|
]
|
|
|
|
|
|
|
@@ -77,9 +63,9 @@ extension WidgetVariant {
|
|
|
case .small:
|
|
case .small:
|
|
|
return CGSize(width: 196, height: 196)
|
|
return CGSize(width: 196, height: 196)
|
|
|
case .medium:
|
|
case .medium:
|
|
|
- return CGSize(width: 340, height: 220)
|
|
|
|
|
- case .large:
|
|
|
|
|
- return CGSize(width: 340, height: 364)
|
|
|
|
|
|
|
+ // Match the medium desktop widget’s tallest expected layout (e.g. 2 meetings + actions)
|
|
|
|
|
+ // so the preview doesn’t clip inside the “Add Widget to Desktop” screen.
|
|
|
|
|
+ return CGSize(width: 340, height: 288)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|