mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 05:19:13 +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
|
self.selectedTheme = decodedSelTheme
|
||||||
|
|
||||||
selectedAnsi = Int(userDefaults.longLong(forKey: "selectedAnsi"))
|
selectedAnsi = Int(userDefaults.longLong(forKey: "selectedAnsi"))
|
||||||
print(themes.count)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func saveThemes() {
|
func saveThemes() {
|
||||||
@@ -144,7 +143,7 @@ class HostsManager: ObservableObject, @unchecked Sendable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func selectAnsi(_ ansi: Int) {
|
func selectAnsi(_ ansi: Int) {
|
||||||
withAnimation { selectedAnsi = ansi }
|
withAnimation(.bouncy) { selectedAnsi = ansi }
|
||||||
saveThemes()
|
saveThemes()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user