diff --git a/ShhShell/Views/About/AboutView.swift b/ShhShell/Views/About/AboutView.swift index f8f053d..d98c600 100644 --- a/ShhShell/Views/About/AboutView.swift +++ b/ShhShell/Views/About/AboutView.swift @@ -11,6 +11,7 @@ struct AboutView: View { @ObservedObject var hostsManager: HostsManager var body: some View { + ZStack { hostsManager.selectedTheme.background.suiColor.opacity(0.7) .ignoresSafeArea(.all) @@ -36,12 +37,22 @@ struct AboutView: View { Link(destination: URL(string: "https://libssh.org")!) { Text("LibSSH") .padding(10) - .background(hostsManager.selectedTheme.background.suiColor) - .clipShape(RoundedRectangle(cornerRadius: 5)) + .background(.gray.opacity(0.7)) + .foregroundStyle(.black) + .clipShape(RoundedRectangle(cornerRadius: 7.5)) + .shadow(radius: 2) + } + Link(destination: URL(string: "https://github.com/migueldeicaza/SwiftTerm")!) { + Text("SwiftTerm") + .padding(10) + .background(.gray.opacity(0.7)) + .foregroundStyle(.black) + .clipShape(RoundedRectangle(cornerRadius: 7.5)) .shadow(radius: 2) } } } + .transition(.scale) .frame(maxWidth: .infinity) .padding() // } diff --git a/ShhShell/Views/Hosts/ConnectionView.swift b/ShhShell/Views/Hosts/ConnectionView.swift index 894f1a4..1468d9d 100644 --- a/ShhShell/Views/Hosts/ConnectionView.swift +++ b/ShhShell/Views/Hosts/ConnectionView.swift @@ -12,8 +12,6 @@ struct ConnectionView: View { @ObservedObject var hostsManager: HostsManager @ObservedObject var keyManager: KeyManager -// @State private var shellView: ShellTabView? = nil - @State var pubkeyStr: String = "" @State var privkeyStr: String = "" @@ -142,6 +140,7 @@ Hostkey fingerprint is \(handler.getHostkey() ?? "nil") .toolbar { ToolbarItem() { Button() { + hostsManager.updateHost(handler.host) handler.go() showTerminal = checkShell(handler.state) } label: { @@ -156,11 +155,6 @@ Hostkey fingerprint is \(handler.getHostkey() ?? "nil") .fullScreenCover(isPresented: $showTerminal) { ShellTabView(handler: handler, hostsManager: hostsManager) } -// .onAppear { -// if shellView == nil { -// shellView = ShellTabView(handler: handler, hostsManager: hostsManager) -// } -// } } } }