Update 3rd party calendar icons

This commit is contained in:
Hariharan Mudaliar 2026-04-06 14:06:34 +05:30
commit 78463086ba
No known key found for this signature in database
GPG key ID: 025583EB0BE5640E
2 changed files with 150 additions and 33 deletions

View file

@ -281,14 +281,22 @@ enum ThirdPartyCalendarApp: String, CaseIterable, Codable, Defaults.Serializable
}
}
var iconName: String {
/// Bundle identifiers to try when looking up the app icon (first match wins).
var bundleIdentifiers: [String] {
switch self {
case .fantastical: return ["com.flexibits.fantastical2.mac", "com.flexibits.fantastical"]
case .notionCalendar: return ["com.cron.electron"]
}
}
var fallbackIconName: String {
switch self {
case .fantastical: return "calendar.badge.clock"
case .notionCalendar: return "calendar.badge.plus"
}
}
var iconColor: Color {
var fallbackIconColor: Color {
switch self {
case .fantastical: return .red
case .notionCalendar: return .blue
@ -370,6 +378,14 @@ enum ThirdPartyDDCProvider: String, CaseIterable, Codable, Defaults.Serializable
return "Lunar"
}
}
/// Bundle identifiers to try when looking up the app icon.
var bundleIdentifiers: [String] {
switch self {
case .betterDisplay: return ["pro.betterdisplay.BetterDisplay"]
case .lunar: return ["fyi.lunar.Lunar"]
}
}
}
enum HideNotchOption: String, Defaults.Serializable {