mirror of
https://github.com/yggdrasil-network/yggdrasil-ios.git
synced 2025-04-28 06:05: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 {
|
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 {
|
NavigationLink(destination: PeersView()) {
|
||||||
Image(systemName: "antenna.radiowaves.left.and.right")
|
HStack {
|
||||||
.foregroundColor(.accentColor)
|
Image(systemName: "antenna.radiowaves.left.and.right")
|
||||||
.frame(minWidth: 24)
|
.foregroundColor(.accentColor)
|
||||||
Text("Peers")
|
.frame(minWidth: 24)
|
||||||
}
|
Text("Peers")
|
||||||
}
|
}
|
||||||
NavigationLink(destination: SettingsView()) {
|
}
|
||||||
HStack {
|
NavigationLink(destination: SettingsView()) {
|
||||||
Image(systemName: "gear")
|
HStack {
|
||||||
.foregroundColor(.accentColor)
|
Image(systemName: "gear")
|
||||||
.frame(minWidth: 24)
|
.foregroundColor(.accentColor)
|
||||||
Text("Settings")
|
.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)
|
.navigationSplitViewColumnWidth(200)
|
||||||
|
.listStyle(.sidebar)
|
||||||
Image("YggdrasilLogo")
|
|
||||||
.resizable()
|
|
||||||
.aspectRatio(contentMode: .fit)
|
|
||||||
.foregroundColor(.primary)
|
|
||||||
.opacity(0.1)
|
|
||||||
.padding(.all, 24.0)
|
|
||||||
} detail: {
|
} detail: {
|
||||||
StatusView()
|
StatusView()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue