mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-28 23:54:32 +00:00
Update fantastical open cmds
This commit is contained in:
parent
d9742dbacd
commit
ab7d2619d7
4 changed files with 94 additions and 19 deletions
|
|
@ -256,6 +256,18 @@ enum CalendarSelectionState: Codable, Defaults.Serializable {
|
|||
case selected(Set<String>)
|
||||
}
|
||||
|
||||
enum FantasticalViewStyle: String, CaseIterable, Codable, Defaults.Serializable {
|
||||
case mini = "mini"
|
||||
case calendar = "calendar"
|
||||
|
||||
var displayName: String {
|
||||
switch self {
|
||||
case .mini: return "Mini View"
|
||||
case .calendar: return "Full Calendar"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum ClipboardDisplayMode: String, CaseIterable, Codable, Defaults.Serializable {
|
||||
case popover = "popover" // Traditional popover attached to button
|
||||
case panel = "panel" // Floating panel near notch
|
||||
|
|
@ -854,6 +866,10 @@ extension Defaults.Keys {
|
|||
static let lockScreenShowCalendarStartTimeAfterBegins = Key<Bool>("lockScreenShowCalendarStartTimeAfterBegins", default: true)
|
||||
static let lockScreenWeatherWidgetRowOrder = Key<String>("lockScreenWeatherWidgetRowOrder", default: "weather_calendar_focus")
|
||||
|
||||
// MARK: Third-party Calendar Integration
|
||||
static let useFantasticalCalendar = Key<Bool>("useFantasticalCalendar", default: false)
|
||||
static let fantasticalDefaultView = Key<FantasticalViewStyle>("fantasticalDefaultView", default: .mini)
|
||||
|
||||
// MARK: Battery
|
||||
static let showPowerStatusNotifications = Key<Bool>("showPowerStatusNotifications", default: true)
|
||||
static let showBatteryIndicator = Key<Bool>("showBatteryIndicator", default: BatteryActivityManager.shared.hasBattery())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue