diff --git a/ShhShell/Views/About/AboutView.swift b/ShhShell/Views/About/AboutView.swift index d37ddf9..f8f053d 100644 --- a/ShhShell/Views/About/AboutView.swift +++ b/ShhShell/Views/About/AboutView.swift @@ -19,7 +19,7 @@ struct AboutView: View { UIImage().appIcon .resizable().scaledToFit() .frame(width: 100) - .clipShape(RoundedRectangle(cornerRadius: 26)) + .clipShape(RoundedRectangle(cornerRadius: 22)) Text("ShhShell") .font(.largeTitle.monospaced()) HStack { @@ -35,7 +35,10 @@ struct AboutView: View { Section("Thanks to") { Link(destination: URL(string: "https://libssh.org")!) { Text("LibSSH") - .background(.red) + .padding(10) + .background(hostsManager.selectedTheme.background.suiColor) + .clipShape(RoundedRectangle(cornerRadius: 5)) + .shadow(radius: 2) } } } diff --git a/ShhShell/Views/Snippets/AddSnippetView.swift b/ShhShell/Views/Snippets/AddSnippetView.swift index ba56c4d..398e404 100644 --- a/ShhShell/Views/Snippets/AddSnippetView.swift +++ b/ShhShell/Views/Snippets/AddSnippetView.swift @@ -30,7 +30,7 @@ struct AddSnippetView: View { .foregroundStyle(.gray) .listRowSeparator(.hidden) .multilineTextAlignment(.leading) - .frame(alignment: .leading) + .frame(maxWidth: .infinity, alignment: .leading) TextEditor(text: $content) .autocorrectionDisabled() .textInputAutocapitalization(.never) diff --git a/ShhShell/Views/Snippets/SnippetManagerView.swift b/ShhShell/Views/Snippets/SnippetManagerView.swift index 9e006e5..8870977 100644 --- a/ShhShell/Views/Snippets/SnippetManagerView.swift +++ b/ShhShell/Views/Snippets/SnippetManagerView.swift @@ -24,10 +24,10 @@ struct SnippetManagerView: View { .frame(width: 75) .foregroundStyle(hostsManager.tint) .shadow(color: hostsManager.tint, radius: 2) + .padding(.bottom, 10) Text("No Snippets") .font(.title) .monospaced() - .padding(.bottom) Text("Snippets are strings of commands that can be run at once in a terminal.") .padding(.bottom) .foregroundStyle(.gray) diff --git a/ShhShell/Views/Snippets/SnippetPicker.swift b/ShhShell/Views/Snippets/SnippetPicker.swift index babd68e..18950c2 100644 --- a/ShhShell/Views/Snippets/SnippetPicker.swift +++ b/ShhShell/Views/Snippets/SnippetPicker.swift @@ -16,6 +16,11 @@ struct SnippetPicker: View { var body: some View { NavigationStack { List { + if hostsManager.snippets.isEmpty { + Text("No Snippets") + .font(.headline) + .monospaced() + } ForEach(hostsManager.snippets) { snip in Text(snip.name) .onTapGesture { @@ -23,12 +28,12 @@ struct SnippetPicker: View { callback?(snip) } } - .toolbar { - Button() { - dismiss() - } label: { - Image(systemName: "xmark") - } + } + .toolbar { + Button() { + dismiss() + } label: { + Image(systemName: "xmark") } } .listStyle(.grouped) diff --git a/ShhShell/Views/Themes/ThemeManagerView.swift b/ShhShell/Views/Themes/ThemeManagerView.swift index 454fb6e..df287e9 100644 --- a/ShhShell/Views/Themes/ThemeManagerView.swift +++ b/ShhShell/Views/Themes/ThemeManagerView.swift @@ -68,10 +68,10 @@ struct ThemeManagerView: View { .resizable().scaledToFit() .symbolRenderingMode(.multicolor) } + .padding(.bottom, 10) .frame(width: 75, height: 75) Text("No themes (yet)") .font(.title) - .padding(.vertical, 10) .bold() 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.")