From 623b2a001a9fccffb8a838102120be4db3d0a2cb Mon Sep 17 00:00:00 2001 From: neon443 <69979447+neon443@users.noreply.github.com> Date: Fri, 5 Sep 2025 16:53:57 +0100 Subject: [PATCH] =?UTF-8?q?updated=20sliders=20to=20show=20more=20info=20l?= =?UTF-8?q?ike=20what=20it=20does=20=F0=9F=92=80=20and=20minium/max=20and?= =?UTF-8?q?=20what=20it=20curretnly=20is?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ShhShell/Views/Settings/SettingsView.swift | 38 ++++++++++++++++++---- 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/ShhShell/Views/Settings/SettingsView.swift b/ShhShell/Views/Settings/SettingsView.swift index 182c798..e96a8e7 100644 --- a/ShhShell/Views/Settings/SettingsView.swift +++ b/ShhShell/Views/Settings/SettingsView.swift @@ -115,15 +115,41 @@ struct SettingsView: View { } } - Slider(value: $hostsManager.settings.cursorAnimations.length, in: 0.05...0.5, step: 0.05) { - Label("Speed", systemImage: "gauge.with.dots.needle.67percent") + VStack { + HStack { + Text("Animation length") + Spacer() + Text("\(hostsManager.settings.cursorAnimations.length)s") + .monospaced() + .contentTransition(.numericText()) + } + Slider(value: $hostsManager.settings.cursorAnimations.length, in: 0.05...0.5, label: { + EmptyView() + }, minimumValueLabel: { + Text("0.05") + }, maximumValueLabel: { + Text("0.5") + }) + .disabled(hostsManager.settings.cursorAnimations.type == .none) } - .disabled(hostsManager.settings.cursorAnimations.type == .none) - Slider(value: $hostsManager.settings.cursorAnimations.stretchMultiplier, in: 0.25...2, step: 0.25) { - Label("Stretch Multiplier", systemImage: "multiply") + VStack { + HStack { + Text("Stretch Multiplier") + Spacer() + Text("\(hostsManager.settings.cursorAnimations.length)s") + .monospaced() + .contentTransition(.numericText()) + } + Slider(value: $hostsManager.settings.cursorAnimations.stretchMultiplier, in: 0.25...2, label: { + EmptyView() + }, minimumValueLabel: { + Text("0.25") + }, maximumValueLabel: { + Text("2") + }) + .disabled(hostsManager.settings.cursorAnimations.type != .stretchAndMove) } - .disabled(hostsManager.settings.cursorAnimations.type != .stretchAndMove) } Section("Keepalive") {