|
|
@@ -49,20 +49,6 @@ enum WidgetTemplates {
|
|
49
|
49
|
WidgetQuickAction(id: "settings", title: "Settings", systemImage: "gearshape.fill", destination: .settings),
|
|
50
|
50
|
WidgetQuickAction(id: "refresh", title: "Refresh", systemImage: "arrow.clockwise", destination: .refreshMeetings)
|
|
51
|
51
|
]
|
|
52
|
|
- ),
|
|
53
|
|
- WidgetVariant(
|
|
54
|
|
- id: "meet_large",
|
|
55
|
|
- title: "Google Meet",
|
|
56
|
|
- subtitle: "Your day at a glance",
|
|
57
|
|
- size: .large,
|
|
58
|
|
- quickActions: [
|
|
59
|
|
- WidgetQuickAction(id: "schedule", title: "Schedule", systemImage: "clock.badge.checkmark", destination: .schedule),
|
|
60
|
|
- WidgetQuickAction(id: "calendar", title: "Calendar", systemImage: "calendar", destination: .calendar),
|
|
61
|
|
- WidgetQuickAction(id: "settings", title: "Settings", systemImage: "gearshape.fill", destination: .settings),
|
|
62
|
|
- WidgetQuickAction(id: "refresh", title: "Refresh", systemImage: "arrow.clockwise", destination: .refreshMeetings),
|
|
63
|
|
- WidgetQuickAction(id: "meet", title: "Open Meet", systemImage: "video.fill", destination: .openMeetWeb),
|
|
64
|
|
- WidgetQuickAction(id: "home", title: "Home", systemImage: "house.fill", destination: .joinMeetings)
|
|
65
|
|
- ]
|
|
66
|
52
|
)
|
|
67
|
53
|
]
|
|
68
|
54
|
|
|
|
@@ -77,9 +63,9 @@ extension WidgetVariant {
|
|
77
|
63
|
case .small:
|
|
78
|
64
|
return CGSize(width: 196, height: 196)
|
|
79
|
65
|
case .medium:
|
|
80
|
|
- return CGSize(width: 340, height: 220)
|
|
81
|
|
- case .large:
|
|
82
|
|
- return CGSize(width: 340, height: 364)
|
|
|
66
|
+ // Match the medium desktop widget’s tallest expected layout (e.g. 2 meetings + actions)
|
|
|
67
|
+ // so the preview doesn’t clip inside the “Add Widget to Desktop” screen.
|
|
|
68
|
+ return CGSize(width: 340, height: 288)
|
|
83
|
69
|
}
|
|
84
|
70
|
}
|
|
85
|
71
|
}
|