mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 13:26:16 +00:00
idk what im doing 😭
This commit is contained in:
@@ -119,21 +119,25 @@ struct SettingsView: View {
|
|||||||
Text(">")
|
Text(">")
|
||||||
.font(.largeTitle).monospaced()
|
.font(.largeTitle).monospaced()
|
||||||
.foregroundStyle(.blue)
|
.foregroundStyle(.blue)
|
||||||
Group {
|
ZStack {
|
||||||
switch hostsManager.settings.cursorType.cursorShape {
|
// switch hostsManager.settings.cursorType.cursorShape {
|
||||||
case .block:
|
if hostsManager.settings.cursorType.cursorShape == .block {
|
||||||
Rectangle()
|
Rectangle()
|
||||||
.frame(width: 20, height: 40)
|
.frame(width: 20, height: 40)
|
||||||
case .bar:
|
} else if hostsManager.settings.cursorType.cursorShape == .bar {
|
||||||
Rectangle()
|
Rectangle()
|
||||||
.frame(width: 4, height: 40)
|
.frame(width: 4, height: 40)
|
||||||
case .underline:
|
} else if hostsManager.settings.cursorType.cursorShape == .underline {
|
||||||
Rectangle()
|
Rectangle()
|
||||||
.frame(width: 20, height: 4)
|
.frame(width: 20, height: 4)
|
||||||
.padding(.top, 36)
|
.padding(.top, 36)
|
||||||
}
|
}
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
// .padding(.leading, 248)
|
// .padding(.leading, 248)
|
||||||
|
.id(hostsManager.settings.cursorType.cursorShape)
|
||||||
|
.animation(.default, value: hostsManager.settings.cursorType.cursorShape)
|
||||||
|
.transition(.opacity)
|
||||||
.onChange(of: hostsManager.settings.cursorType.blink) { _ in
|
.onChange(of: hostsManager.settings.cursorType.blink) { _ in
|
||||||
startBlinkingIfNeeded()
|
startBlinkingIfNeeded()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user