feat: add system theme toggle command

This commit is contained in:
2026-10-18 18:42:03 +02:00
parent cead6d9382
commit a68694e66b
8 changed files with 146 additions and 10 deletions
+2
View File
@@ -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)
}