second commit

This commit is contained in:
Alex E. Tafoya
2026-09-17 16:15:02 -05:00
parent 87fe7927c4
commit 7e3801c7c6
10 changed files with 585 additions and 151 deletions
+8 -1
View File
@@ -110,7 +110,8 @@ final class Configuration {
Keys.editorHighlightColor: "#FFFF00",
Keys.editorDropShadow: false,
Keys.showMagnifier: true,
Keys.showSelectionSize: true
Keys.showSelectionSize: true,
Keys.appearanceMode: AppearanceMode.system.rawValue
])
}
@@ -138,6 +139,7 @@ final class Configuration {
static let editorDropShadow = "EditorDropShadow"
static let showMagnifier = "ShowMagnifier"
static let showSelectionSize = "ShowSelectionSize"
static let appearanceMode = "AppearanceMode"
static let hotkeyRegion = "HotkeyRegion"
static let hotkeyFullscreen = "HotkeyFullscreen"
static let hotkeyWindow = "HotkeyWindow"
@@ -208,6 +210,11 @@ final class Configuration {
set { defaults.set(newValue, forKey: Keys.showSelectionSize) }
}
var appearanceMode: AppearanceMode {
get { AppearanceMode(rawValue: defaults.string(forKey: Keys.appearanceMode) ?? "system") ?? .system }
set { defaults.set(newValue.rawValue, forKey: Keys.appearanceMode) }
}
// MARK: - Destinations
var defaultDestination: DestinationID {