From e5e0a47f4f1817e1c3b9b97c6d4cba6b489fdbe2 Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Tue, 8 Jul 2025 14:27:13 +0100 Subject: [PATCH] updated themeeditor to work with teh background color added suiColor as a get/set property on colorcodable trying to fix the wierd jumpiness when shaking the color in the green bit trying to fix the wierd drift when increasing the "brightness" savethemes will clear themes before starting to append updated updatetheme to savethemes aswell modified: ShhShell/Host/HostsManager.swift modified: ShhShell/Themes/ColorCodable.swift modified: ShhShell/Themes/ThemeCodable.swift modified: ShhShell/Views/Themes/ThemeEditorView.swift --- ShhShell/Host/HostsManager.swift | 2 + ShhShell/Themes/ColorCodable.swift | 24 ++++-- ShhShell/Themes/ThemeCodable.swift | 81 +++++++++++++++++---- ShhShell/Views/Themes/ThemeEditorView.swift | 78 +++++++++++--------- 4 files changed, 128 insertions(+), 57 deletions(-) diff --git a/ShhShell/Host/HostsManager.swift b/ShhShell/Host/HostsManager.swift index 439cff4..47e6c0c 100644 --- a/ShhShell/Host/HostsManager.swift +++ b/ShhShell/Host/HostsManager.swift @@ -61,6 +61,7 @@ class HostsManager: ObservableObject, @unchecked Sendable { guard let decodedThemes = try? JSONDecoder().decode([ThemeCodable].self, from: dataTheme) else { return } + self.themes = [] for index in 0..