Awdjfghkahdsgjf;h

id and name were swapped loll
switch back to icloud defaults for hostsmanager
update xcode* themes to camel case
This commit is contained in:
neon443
2025-06-29 11:15:22 +01:00
parent 331b21b23f
commit 4ca3bc035f
17 changed files with 43 additions and 46 deletions

View File

@@ -66,10 +66,7 @@ struct Theme: Hashable, Equatable, Identifiable {
static func decodeLocalTheme(fileName: String) -> Theme? {
guard let path = Bundle.main.url(forResource: fileName, withExtension: "plist") else { return nil }
let themeName = path.lastPathComponent.replacingOccurrences(of: ".plist", with: "")
guard let fileContents = try? Data(contentsOf: path) else { return nil }
return Theme.decodeTheme(data: fileContents)
}
@@ -95,9 +92,9 @@ struct Theme: Hashable, Equatable, Identifiable {
enum ThemesBuiltin: String, CaseIterable, Hashable, Equatable {
case defaultTheme = "defaultTheme"
case xcodedark = "xcodedark"
case xcodedarkhc = "xcodedarkhc"
case xcodewwdc = "xcodewwdc"
case xcodeDark = "xcodeDark"
case xcodeDarkHC = "xcodeDarkHC"
case xcodeWWDC = "xcodeWWDC"
case tomorrowNight = "tomorrowNight"
case zeroXNineSixF = "0x96f"
case iTerm2SolarizedDark = "iTerm2SolarizedDark"

View File

@@ -74,7 +74,7 @@ extension ThemeCodable {
extension ThemeCodable {
func toTheme() -> Theme {
return Theme(
id: id ?? UUID().uuidString,
id: self.id ?? UUID().uuidString,
name: self.name ?? "",
ansi: self.ansi,
foreground: self.foreground.stColor,