mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Update 3rd party calendar icons
This commit is contained in:
parent
563afde92f
commit
78463086ba
2 changed files with 150 additions and 33 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue