mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 21:36:17 +00:00
libssh link actually looks good now
change border radius of the app icon in aboutviewto match ios 7-18 left aligned "Content" header in add snippet view improve padding stuff
This commit is contained in:
@@ -19,7 +19,7 @@ struct AboutView: View {
|
|||||||
UIImage().appIcon
|
UIImage().appIcon
|
||||||
.resizable().scaledToFit()
|
.resizable().scaledToFit()
|
||||||
.frame(width: 100)
|
.frame(width: 100)
|
||||||
.clipShape(RoundedRectangle(cornerRadius: 26))
|
.clipShape(RoundedRectangle(cornerRadius: 22))
|
||||||
Text("ShhShell")
|
Text("ShhShell")
|
||||||
.font(.largeTitle.monospaced())
|
.font(.largeTitle.monospaced())
|
||||||
HStack {
|
HStack {
|
||||||
@@ -35,7 +35,10 @@ struct AboutView: View {
|
|||||||
Section("Thanks to") {
|
Section("Thanks to") {
|
||||||
Link(destination: URL(string: "https://libssh.org")!) {
|
Link(destination: URL(string: "https://libssh.org")!) {
|
||||||
Text("LibSSH")
|
Text("LibSSH")
|
||||||
.background(.red)
|
.padding(10)
|
||||||
|
.background(hostsManager.selectedTheme.background.suiColor)
|
||||||
|
.clipShape(RoundedRectangle(cornerRadius: 5))
|
||||||
|
.shadow(radius: 2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ struct AddSnippetView: View {
|
|||||||
.foregroundStyle(.gray)
|
.foregroundStyle(.gray)
|
||||||
.listRowSeparator(.hidden)
|
.listRowSeparator(.hidden)
|
||||||
.multilineTextAlignment(.leading)
|
.multilineTextAlignment(.leading)
|
||||||
.frame(alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
TextEditor(text: $content)
|
TextEditor(text: $content)
|
||||||
.autocorrectionDisabled()
|
.autocorrectionDisabled()
|
||||||
.textInputAutocapitalization(.never)
|
.textInputAutocapitalization(.never)
|
||||||
|
|||||||
@@ -24,10 +24,10 @@ struct SnippetManagerView: View {
|
|||||||
.frame(width: 75)
|
.frame(width: 75)
|
||||||
.foregroundStyle(hostsManager.tint)
|
.foregroundStyle(hostsManager.tint)
|
||||||
.shadow(color: hostsManager.tint, radius: 2)
|
.shadow(color: hostsManager.tint, radius: 2)
|
||||||
|
.padding(.bottom, 10)
|
||||||
Text("No Snippets")
|
Text("No Snippets")
|
||||||
.font(.title)
|
.font(.title)
|
||||||
.monospaced()
|
.monospaced()
|
||||||
.padding(.bottom)
|
|
||||||
Text("Snippets are strings of commands that can be run at once in a terminal.")
|
Text("Snippets are strings of commands that can be run at once in a terminal.")
|
||||||
.padding(.bottom)
|
.padding(.bottom)
|
||||||
.foregroundStyle(.gray)
|
.foregroundStyle(.gray)
|
||||||
|
|||||||
@@ -16,6 +16,11 @@ struct SnippetPicker: View {
|
|||||||
var body: some View {
|
var body: some View {
|
||||||
NavigationStack {
|
NavigationStack {
|
||||||
List {
|
List {
|
||||||
|
if hostsManager.snippets.isEmpty {
|
||||||
|
Text("No Snippets")
|
||||||
|
.font(.headline)
|
||||||
|
.monospaced()
|
||||||
|
}
|
||||||
ForEach(hostsManager.snippets) { snip in
|
ForEach(hostsManager.snippets) { snip in
|
||||||
Text(snip.name)
|
Text(snip.name)
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
@@ -23,12 +28,12 @@ struct SnippetPicker: View {
|
|||||||
callback?(snip)
|
callback?(snip)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.toolbar {
|
}
|
||||||
Button() {
|
.toolbar {
|
||||||
dismiss()
|
Button() {
|
||||||
} label: {
|
dismiss()
|
||||||
Image(systemName: "xmark")
|
} label: {
|
||||||
}
|
Image(systemName: "xmark")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.listStyle(.grouped)
|
.listStyle(.grouped)
|
||||||
|
|||||||
@@ -68,10 +68,10 @@ struct ThemeManagerView: View {
|
|||||||
.resizable().scaledToFit()
|
.resizable().scaledToFit()
|
||||||
.symbolRenderingMode(.multicolor)
|
.symbolRenderingMode(.multicolor)
|
||||||
}
|
}
|
||||||
|
.padding(.bottom, 10)
|
||||||
.frame(width: 75, height: 75)
|
.frame(width: 75, height: 75)
|
||||||
Text("No themes (yet)")
|
Text("No themes (yet)")
|
||||||
.font(.title)
|
.font(.title)
|
||||||
.padding(.vertical, 10)
|
|
||||||
.bold()
|
.bold()
|
||||||
Text("Tap the Safari icon at the top right to find themes!")
|
Text("Tap the Safari icon at the top right to find themes!")
|
||||||
Text("Once you find one that you like, copy it's link and enter it here using the link button.")
|
Text("Once you find one that you like, copy it's link and enter it here using the link button.")
|
||||||
|
|||||||
Reference in New Issue
Block a user