mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
simplified the cursor preview view
This commit is contained in:
@@ -55,18 +55,16 @@ 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)
|
Text("~")
|
||||||
Text(" ~ ")
|
.font(.largeTitle).monospaced()
|
||||||
.font(.largeTitle).monospaced()
|
.foregroundStyle(.blue)
|
||||||
.foregroundStyle(.blue)
|
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()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user