simplified the cursor preview view

This commit is contained in:
neon443
2025-08-25 11:03:39 +01:00
parent f2d034b732
commit 4f92d34d1a

View File

@@ -55,8 +55,7 @@ struct SettingsView: View {
} }
Section("Cursor") { Section("Cursor") {
ZStack(alignment: .leading) { HStack(spacing: 20) {
HStack(spacing: 0) {
Text("neon443") Text("neon443")
.font(.largeTitle).monospaced() .font(.largeTitle).monospaced()
.foregroundStyle(.terminalGreen) .foregroundStyle(.terminalGreen)
@@ -66,7 +65,6 @@ struct SettingsView: View {
Text(">") Text(">")
.font(.largeTitle).monospaced() .font(.largeTitle).monospaced()
.foregroundStyle(.blue) .foregroundStyle(.blue)
}
Group { Group {
switch hostsManager.settings.cursorType.cursorShape { switch hostsManager.settings.cursorType.cursorShape {
case .block: case .block:
@@ -81,7 +79,7 @@ struct SettingsView: View {
.padding(.top, 36) .padding(.top, 36)
} }
} }
.padding(.leading, 248) // .padding(.leading, 248)
.onChange(of: hostsManager.settings.cursorType.blink) { _ in .onChange(of: hostsManager.settings.cursorType.blink) { _ in
startBlinkingIfNeeded() startBlinkingIfNeeded()
} }