updated sliders to show more info like what it does 💀

and minium/max and what it curretnly is
This commit is contained in:
neon443 committed 2025-09-05 16:53:57 +01:00
1 parent 6d3b7f2f64
commit 623b2a001a
1 file changed
+32 -6
+32 -6
View File
@@ -115,15 +115,41 @@ struct SettingsView: View {
} }
} }
Slider(value: $hostsManager.settings.cursorAnimations.length, in: 0.05...0.5, step: 0.05) { VStack {
Label("Speed", systemImage: "gauge.with.dots.needle.67percent") 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) { VStack {
Label("Stretch Multiplier", systemImage: "multiply") 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") { Section("Keepalive") {
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.