@@ -29,9 +29,9 @@ final class ThemeModel: ObservableObject {
2929 Bundle . main. resourceURL? . appendingPathComponent ( " DefaultThemes " , isDirectory: true ) ?? nil
3030 }
3131
32- /// The URL of the `themes ` folder
32+ /// The URL of the `Themes ` folder
3333 internal var themesURL : URL {
34- baseURL. appendingPathComponent ( " themes " , isDirectory: true )
34+ baseURL. appendingPathComponent ( " Themes " , isDirectory: true )
3535 }
3636
3737 /// The URL of the `Extensions` folder
@@ -128,14 +128,14 @@ final class ThemeModel: ObservableObject {
128128 }
129129 }
130130
131- /// Loads all available themes from `~/Library/Application Support/CodeEdit/themes /`
131+ /// Loads all available themes from `~/Library/Application Support/CodeEdit/Themes /`
132132 ///
133133 /// If no themes are available, it will create a default theme and save
134134 /// it to the location mentioned above.
135135 ///
136- /// When overrides are found in `~/Library/Application Support/CodeEdit/. settings.json`
136+ /// When overrides are found in `~/Library/Application Support/CodeEdit/settings.json`
137137 /// 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 /`.
139139 func loadThemes( ) throws { // swiftlint:disable:this function_body_length
140140 if let bundledThemesURL = bundledThemesURL {
141141 // remove all themes from memory
@@ -243,7 +243,7 @@ final class ThemeModel: ObservableObject {
243243 /// `~/Library/Application Support/CodeEdit/settings.json`
244244 ///
245245 /// After removing overrides, themes are reloaded
246- /// from `~/Library/Application Support/CodeEdit/themes `. See ``loadThemes()``
246+ /// from `~/Library/Application Support/CodeEdit/Themes `. See ``loadThemes()``
247247 /// for more information.
248248 ///
249249 /// - Parameter theme: The theme to reset
@@ -259,7 +259,7 @@ final class ThemeModel: ObservableObject {
259259 /// Removes the given theme from `–/Library/Application Support/CodeEdit/themes`
260260 ///
261261 /// 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()``
263263 /// for more information.
264264 ///
265265 /// - Parameter theme: The theme to delete
@@ -287,7 +287,7 @@ final class ThemeModel: ObservableObject {
287287 let url = themesURL
288288 themes. forEach { theme in
289289 do {
290- // load the original theme from `~/Library/Application Support/CodeEdit/themes /`
290+ // load the original theme from `~/Library/Application Support/CodeEdit/Themes /`
291291 let originalUrl = url. appendingPathComponent ( theme. name) . appendingPathExtension ( " cetheme " )
292292 let originalData = try Data ( contentsOf: originalUrl)
293293 let originalTheme = try JSONDecoder ( ) . decode ( Theme . self, from: originalData)
0 commit comments