forked from github/CopilotForXcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPreferenceKey+Theme.swift
More file actions
27 lines (20 loc) · 808 Bytes
/
PreferenceKey+Theme.swift
File metadata and controls
27 lines (20 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import Foundation
import Preferences
// MARK: - Theming
public extension UserDefaultPreferenceKeys {
var lightXcodeThemeName: PreferenceKey<String> {
.init(defaultValue: "", key: "LightXcodeThemeName")
}
var lightXcodeTheme: PreferenceKey<UserDefaultsStorageBox<XcodeTheme?>> {
.init(defaultValue: .init(nil), key: "LightXcodeTheme")
}
var darkXcodeThemeName: PreferenceKey<String> {
.init(defaultValue: "", key: "DarkXcodeThemeName")
}
var darkXcodeTheme: PreferenceKey<UserDefaultsStorageBox<XcodeTheme?>> {
.init(defaultValue: .init(nil), key: "DarkXcodeTheme")
}
var lastSyncedHighlightJSThemeCreatedAt: PreferenceKey<TimeInterval> {
.init(defaultValue: 0, key: "LastSyncedHighlightJSThemeCreatedAt")
}
}