mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
tweaked animations on selecting an ansi color or theme
This commit is contained in:
@@ -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