mirror of
https://github.com/neon443/ShhShell.git
synced 2026-03-11 05:19:13 +00:00
fix the key, hostskeys, snippet views being black sometimes
This commit is contained in:
@@ -14,7 +14,6 @@ struct HostkeysView: View {
|
|||||||
ZStack {
|
ZStack {
|
||||||
hostsManager.selectedTheme.background.suiColor.opacity(0.7)
|
hostsManager.selectedTheme.background.suiColor.opacity(0.7)
|
||||||
.ignoresSafeArea(.all)
|
.ignoresSafeArea(.all)
|
||||||
NavigationStack {
|
|
||||||
List {
|
List {
|
||||||
if hostsManager.hosts.isEmpty {
|
if hostsManager.hosts.isEmpty {
|
||||||
VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
@@ -64,7 +63,6 @@ struct HostkeysView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#Preview {
|
#Preview {
|
||||||
HostkeysView(hostsManager: HostsManager())
|
HostkeysView(hostsManager: HostsManager())
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ struct KeyManagerView: View {
|
|||||||
ZStack {
|
ZStack {
|
||||||
hostsManager.selectedTheme.background.suiColor.opacity(0.7)
|
hostsManager.selectedTheme.background.suiColor.opacity(0.7)
|
||||||
.ignoresSafeArea(.all)
|
.ignoresSafeArea(.all)
|
||||||
NavigationStack {
|
|
||||||
List {
|
List {
|
||||||
Section() {
|
Section() {
|
||||||
ForEach(keyManager.keypairs) { kp in
|
ForEach(keyManager.keypairs) { kp in
|
||||||
@@ -72,7 +71,6 @@ struct KeyManagerView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#Preview {
|
#Preview {
|
||||||
KeyManagerView(
|
KeyManagerView(
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ struct SnippetManagerView: View {
|
|||||||
ZStack {
|
ZStack {
|
||||||
hostsManager.selectedTheme.background.suiColor.opacity(0.7)
|
hostsManager.selectedTheme.background.suiColor.opacity(0.7)
|
||||||
.ignoresSafeArea(.all)
|
.ignoresSafeArea(.all)
|
||||||
NavigationStack {
|
|
||||||
List {
|
List {
|
||||||
if hostsManager.snippets.isEmpty {
|
if hostsManager.snippets.isEmpty {
|
||||||
VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
@@ -77,7 +76,6 @@ struct SnippetManagerView: View {
|
|||||||
Label("Add", systemImage: "plus")
|
Label("Add", systemImage: "plus")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
.navigationTitle("Snippets")
|
.navigationTitle("Snippets")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user