Skip to content

Commit 01c5235

Browse files
committed
Capitalized themes folder in application support.
1 parent 076ea4c commit 01c5235

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

CodeEdit/Features/Settings/Pages/ThemeSettings/Models/ThemeModel.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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)

DefaultThemes/Basic.cetheme

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "basic",
3-
"displayName": "Basic",
2+
"id": "basic",
3+
"name": "Basic",
44
"description": "CodeEdit bundled theme.",
55
"author": "CodeEdit",
66
"version": "0.0.1",

DefaultThemes/Sunset.cetheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"selection": {
6565
"color": "#FBE4AC"
6666
},
67-
"insertionPoint": {
67+
"cursor": {
6868
"color": "#000000"
6969
},
7070
"text": {

0 commit comments

Comments
 (0)