mirror of
https://github.com/yggdrasil-network/yggdrasil-ios.git
synced 2025-04-28 14:15:09 +03:00
Tweaks
This commit is contained in:
parent
0553f929f6
commit
2cb5eebcd2
1 changed files with 37 additions and 31 deletions
|
@ -23,41 +23,47 @@ struct Application: App {
|
|||
var body: some Scene {
|
||||
WindowGroup {
|
||||
NavigationSplitView {
|
||||
List(selection: $selection) {
|
||||
NavigationLink(destination: StatusView()) {
|
||||
HStack {
|
||||
Image(systemName: "info.circle")
|
||||
.foregroundColor(.accentColor)
|
||||
.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")
|
||||
ZStack {
|
||||
List(selection: $selection) {
|
||||
NavigationLink(destination: StatusView()) {
|
||||
HStack {
|
||||
Image(systemName: "info.circle")
|
||||
.foregroundColor(.accentColor)
|
||||
.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")
|
||||
}
|
||||
}
|
||||
}
|
||||
//.listStyle(.sidebar)
|
||||
//.navigationSplitViewColumnWidth(200)
|
||||
|
||||
Image("YggdrasilLogo")
|
||||
.renderingMode(.template)
|
||||
.resizable()
|
||||
.aspectRatio(contentMode: .fit)
|
||||
.foregroundColor(.primary)
|
||||
.opacity(0.1)
|
||||
.frame(maxWidth: 200, alignment: .bottom)
|
||||
.padding(.all, 24)
|
||||
}
|
||||
.listStyle(.sidebar)
|
||||
.navigationSplitViewColumnWidth(200)
|
||||
|
||||
Image("YggdrasilLogo")
|
||||
.resizable()
|
||||
.aspectRatio(contentMode: .fit)
|
||||
.foregroundColor(.primary)
|
||||
.opacity(0.1)
|
||||
.padding(.all, 24.0)
|
||||
.listStyle(.sidebar)
|
||||
} detail: {
|
||||
StatusView()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue