This commit is contained in:
Neil Alexander 2023-09-03 13:56:07 +01:00
parent 0553f929f6
commit 2cb5eebcd2
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -23,41 +23,47 @@ struct Application: App {
var body: some Scene { var body: some Scene {
WindowGroup { WindowGroup {
NavigationSplitView { NavigationSplitView {
List(selection: $selection) { ZStack {
NavigationLink(destination: StatusView()) { List(selection: $selection) {
HStack { NavigationLink(destination: StatusView()) {
Image(systemName: "info.circle") HStack {
.foregroundColor(.accentColor) Image(systemName: "info.circle")
.frame(minWidth: 24) .foregroundColor(.accentColor)
Text("Status") .frame(minWidth: 24)
Text("Status")
}
}
NavigationLink(destination: PeersView()) {
HStack {
Image(systemName: "antenna.radiowaves.left.and.right")
.foregroundColor(.accentColor)
.frame(minWidth: 24)
Text("Peers")
}
}
NavigationLink(destination: SettingsView()) {
HStack {
Image(systemName: "gear")
.foregroundColor(.accentColor)
.frame(minWidth: 24)
Text("Settings")
}
} }
} }
NavigationLink(destination: PeersView()) { //.listStyle(.sidebar)
HStack { //.navigationSplitViewColumnWidth(200)
Image(systemName: "antenna.radiowaves.left.and.right")
.foregroundColor(.accentColor)
.frame(minWidth: 24)
Text("Peers")
}
}
NavigationLink(destination: SettingsView()) {
HStack {
Image(systemName: "gear")
.foregroundColor(.accentColor)
.frame(minWidth: 24)
Text("Settings")
}
}
}
.listStyle(.sidebar)
.navigationSplitViewColumnWidth(200)
Image("YggdrasilLogo") Image("YggdrasilLogo")
.resizable() .renderingMode(.template)
.aspectRatio(contentMode: .fit) .resizable()
.foregroundColor(.primary) .aspectRatio(contentMode: .fit)
.opacity(0.1) .foregroundColor(.primary)
.padding(.all, 24.0) .opacity(0.1)
.frame(maxWidth: 200, alignment: .bottom)
.padding(.all, 24)
}
.navigationSplitViewColumnWidth(200)
.listStyle(.sidebar)
} detail: { } detail: {
StatusView() StatusView()
} }