tweaked animations on selecting an ansi color or theme

This commit is contained in:
neon443
2025-08-04 19:24:47 +01:00
parent 1f9867caa4
commit d6822f7614

View File

@@ -114,7 +114,6 @@ class HostsManager: ObservableObject, @unchecked Sendable {
self.selectedTheme = decodedSelTheme
selectedAnsi = Int(userDefaults.longLong(forKey: "selectedAnsi"))
print(themes.count)
}
func saveThemes() {
@@ -144,7 +143,7 @@ class HostsManager: ObservableObject, @unchecked Sendable {
}
func selectAnsi(_ ansi: Int) {
withAnimation { selectedAnsi = ansi }
withAnimation(.bouncy) { selectedAnsi = ansi }
saveThemes()
}