tweaked animations on selecting an ansi color or theme

This commit is contained in:
neon443 committed 2025-08-04 19:24:47 +01:00
1 parent 1f9867caa4
commit d6822f7614
1 file changed
+1 -2
+1 -2
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()
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.