mirror of
https://github.com/neon443/ShhShell.git
synced 2026-11-30 20:54:51 +00:00
update shelltabview - remove geometryreader and make the smallest tab size larger
update keyimporterview to make the button not look odd fix the textbox having illegible text fix hostsymbol picker looking shit in light mode
This commit is contained in:
3 files changed
+9
-7
No files matched your search
@@ -57,6 +57,7 @@ struct HostSymbolPicker: View {
|
|||||||
}
|
}
|
||||||
.padding(10)
|
.padding(10)
|
||||||
}
|
}
|
||||||
|
.preferredColorScheme(.dark)
|
||||||
.scrollDisabled(true)
|
.scrollDisabled(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,8 +45,10 @@ struct KeyImporterView: View {
|
|||||||
.listRowSeparator(.hidden)
|
.listRowSeparator(.hidden)
|
||||||
|
|
||||||
TextEditor(text: $privkeyStr)
|
TextEditor(text: $privkeyStr)
|
||||||
.background(.black)
|
.background(.gray.opacity(0.5))
|
||||||
.clipShape(RoundedRectangle(cornerRadius: 10))
|
.clipShape(RoundedRectangle(cornerRadius: 8))
|
||||||
|
.padding(.bottom, 5)
|
||||||
|
.padding(.horizontal, -8)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !keypair.openSshPubkey.isEmpty {
|
if !keypair.openSshPubkey.isEmpty {
|
||||||
@@ -55,7 +57,7 @@ struct KeyImporterView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
.overlay(alignment: .bottom) {
|
||||||
Button() {
|
Button() {
|
||||||
keyManager.importKey(type: keyType, priv: privkeyStr, name: keyName)
|
keyManager.importKey(type: keyType, priv: privkeyStr, name: keyName)
|
||||||
dismiss()
|
dismiss()
|
||||||
@@ -68,7 +70,8 @@ struct KeyImporterView: View {
|
|||||||
UINotificationFeedbackGenerator().notificationOccurred(.success)
|
UINotificationFeedbackGenerator().notificationOccurred(.success)
|
||||||
}
|
}
|
||||||
.buttonStyle(.borderedProminent)
|
.buttonStyle(.borderedProminent)
|
||||||
.padding()
|
.padding(.bottom, 15)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -46,9 +46,8 @@ struct ShellTabView: View {
|
|||||||
ZStack {
|
ZStack {
|
||||||
background
|
background
|
||||||
.ignoresSafeArea(.all)
|
.ignoresSafeArea(.all)
|
||||||
GeometryReader { geo in
|
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
let oneTabWidth = max(60, (geo.size.width)/CGFloat(container.sessionIDs.count))
|
let oneTabWidth = max(100, (UIScreen.main.bounds.width)/CGFloat(container.sessionIDs.count))
|
||||||
|
|
||||||
HStack(alignment: .center, spacing: 10) {
|
HStack(alignment: .center, spacing: 10) {
|
||||||
Button() {
|
Button() {
|
||||||
@@ -198,7 +197,6 @@ struct ShellTabView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#Preview {
|
#Preview {
|
||||||
ShellTabView(
|
ShellTabView(
|
||||||
|
|||||||