@@ -29,9 +29,9 @@ final class ThemeModel: ObservableObject {
29
29
Bundle . main. resourceURL? . appendingPathComponent ( " DefaultThemes " , isDirectory: true ) ?? nil
30
30
}
31
31
32
- /// The URL of the `themes ` folder
32
+ /// The URL of the `Themes ` folder
33
33
internal var themesURL : URL {
34
- baseURL. appendingPathComponent ( " themes " , isDirectory: true )
34
+ baseURL. appendingPathComponent ( " Themes " , isDirectory: true )
35
35
}
36
36
37
37
/// The URL of the `Extensions` folder
@@ -128,14 +128,14 @@ final class ThemeModel: ObservableObject {
128
128
}
129
129
}
130
130
131
- /// Loads all available themes from `~/Library/Application Support/CodeEdit/themes /`
131
+ /// Loads all available themes from `~/Library/Application Support/CodeEdit/Themes /`
132
132
///
133
133
/// If no themes are available, it will create a default theme and save
134
134
/// it to the location mentioned above.
135
135
///
136
- /// When overrides are found in `~/Library/Application Support/CodeEdit/. settings.json`
136
+ /// When overrides are found in `~/Library/Application Support/CodeEdit/settings.json`
137
137
/// they are applied to the loaded themes without altering the original
138
- /// the files in `~/Library/Application Support/CodeEdit/themes /`.
138
+ /// the files in `~/Library/Application Support/CodeEdit/Themes /`.
139
139
func loadThemes( ) throws { // swiftlint:disable:this function_body_length
140
140
if let bundledThemesURL = bundledThemesURL {
141
141
// remove all themes from memory
@@ -243,7 +243,7 @@ final class ThemeModel: ObservableObject {
243
243
/// `~/Library/Application Support/CodeEdit/settings.json`
244
244
///
245
245
/// After removing overrides, themes are reloaded
246
- /// from `~/Library/Application Support/CodeEdit/themes `. See ``loadThemes()``
246
+ /// from `~/Library/Application Support/CodeEdit/Themes `. See ``loadThemes()``
247
247
/// for more information.
248
248
///
249
249
/// - Parameter theme: The theme to reset
@@ -259,7 +259,7 @@ final class ThemeModel: ObservableObject {
259
259
/// Removes the given theme from `–/Library/Application Support/CodeEdit/themes`
260
260
///
261
261
/// After removing the theme, themes are reloaded
262
- /// from `~/Library/Application Support/CodeEdit/themes `. See ``loadThemes()``
262
+ /// from `~/Library/Application Support/CodeEdit/Themes `. See ``loadThemes()``
263
263
/// for more information.
264
264
///
265
265
/// - Parameter theme: The theme to delete
@@ -287,7 +287,7 @@ final class ThemeModel: ObservableObject {
287
287
let url = themesURL
288
288
themes. forEach { theme in
289
289
do {
290
- // load the original theme from `~/Library/Application Support/CodeEdit/themes /`
290
+ // load the original theme from `~/Library/Application Support/CodeEdit/Themes /`
291
291
let originalUrl = url. appendingPathComponent ( theme. name) . appendingPathExtension ( " cetheme " )
292
292
let originalData = try Data ( contentsOf: originalUrl)
293
293
let originalTheme = try JSONDecoder ( ) . decode ( Theme . self, from: originalData)
0 commit comments