accent color picking

added about
added saveSettings()
backported to 16.0
new title bar
This commit is contained in:
neon443
2025-05-06 09:36:56 +01:00
parent f03ea73813
commit 4157520ff4
15 changed files with 295 additions and 28 deletions

View File

@@ -128,6 +128,16 @@ class SettingsViewModel: ObservableObject {
}
}
}
func saveSettings() {
let encoder = JSONEncoder()
if let encoded = try? encoder.encode(settings) {
appGroupSettingsStore.set(encoded, forKey: "settings")
icSettStore.set(encoded, forKey: "settings")
icSettStore.synchronize()
loadSettings()
}
}
}
class EventViewModel: ObservableObject {