mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 21:36:17 +00:00
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:
@@ -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"
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user