second commit
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user