feat: add system theme toggle command
This commit is contained in:
@@ -5,6 +5,7 @@ public struct Application: Identifiable, Sendable {
|
||||
case translate
|
||||
case emoji
|
||||
case notes
|
||||
case toggleTheme
|
||||
}
|
||||
public static let commands = Command.allCases.map { Application(command: $0) }
|
||||
public let command: Command?
|
||||
@@ -22,6 +23,7 @@ public struct Application: Identifiable, Sendable {
|
||||
case .translate: "Conjure Translate"
|
||||
case .emoji: "Conjure Emoji"
|
||||
case .notes: "Conjure Notes"
|
||||
case .toggleTheme: "Conjure Toggle Light/Dark Theme"
|
||||
}
|
||||
self.init(canonicalURL: URL(string: "conjure-command://\(command.rawValue)")!, name: name, command: command)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user