|
7 | 7 |
|
8 | 8 | import SwiftUI
|
9 | 9 | import CodeFile
|
10 |
| -import CodeEditor |
11 | 10 |
|
12 | 11 | // MARK: - View
|
13 | 12 |
|
14 | 13 | struct GeneralSettingsView: View {
|
15 | 14 | @AppStorage(Appearances.storageKey) var appearance: Appearances = .default
|
16 | 15 | @AppStorage(ReopenBehavior.storageKey) var reopenBehavior: ReopenBehavior = .default
|
17 |
| - @AppStorage(FileIconStyle.storageKey) var fileIconStyle: FileIconStyle = .default |
18 |
| - @AppStorage(CodeEditorTheme.storageKey) var editorTheme: CodeEditor.ThemeName = .atelierSavannaAuto |
| 16 | + @AppStorage(FileIconStyle.storageKey) var fileIconStyle: FileIconStyle = .default |
| 17 | + @AppStorage(CodeFileView.Theme.storageKey) var editorTheme: CodeFileView.Theme = .atelierSavannaAuto |
| 18 | + |
19 | 19 | var body: some View {
|
20 | 20 | Form {
|
21 | 21 | Picker("Appearance".localized(), selection: $appearance) {
|
@@ -50,18 +50,18 @@ struct GeneralSettingsView: View {
|
50 | 50 |
|
51 | 51 | Picker("Editor Theme".localized(), selection: $editorTheme) {
|
52 | 52 | Text("Atelier Savanna (Auto)")
|
53 |
| - .tag(CodeEditor.ThemeName.atelierSavannaAuto) |
| 53 | + .tag(CodeFileView.Theme.atelierSavannaAuto) |
54 | 54 | Text("Atelier Savanna Dark")
|
55 |
| - .tag(CodeEditor.ThemeName.atelierSavannaDark) |
| 55 | + .tag(CodeFileView.Theme.atelierSavannaDark) |
56 | 56 | Text("Atelier Savanna Light")
|
57 |
| - .tag(CodeEditor.ThemeName.atelierSavannaLight) |
| 57 | + .tag(CodeFileView.Theme.atelierSavannaLight) |
58 | 58 | // TODO: Pojoaque does not seem to work (does not change from previous selection)
|
59 | 59 | // Text("Pojoaque")
|
60 | 60 | // .tag(CodeEditor.ThemeName.pojoaque)
|
61 | 61 | Text("Agate")
|
62 |
| - .tag(CodeEditor.ThemeName.agate) |
| 62 | + .tag(CodeFileView.Theme.agate) |
63 | 63 | Text("Ocean")
|
64 |
| - .tag(CodeEditor.ThemeName.ocean) |
| 64 | + .tag(CodeFileView.Theme.ocean) |
65 | 65 | }
|
66 | 66 | }
|
67 | 67 | .padding()
|
|
0 commit comments