mirror of
https://github.com/kkebo/DNSecure.git
synced 2026-03-11 08:54:36 +00:00
Merge pull request #18 from kkk669/refine-toolbar-on-contentview
Refine the toolbar on ContentView
This commit is contained in:
commit
73eb736278
1 changed files with 3 additions and 1 deletions
|
|
@ -169,13 +169,15 @@ extension ContentView: View {
|
||||||
.listStyle(SidebarListStyle())
|
.listStyle(SidebarListStyle())
|
||||||
.navigationTitle(Bundle.main.displayName!)
|
.navigationTitle(Bundle.main.displayName!)
|
||||||
.toolbar {
|
.toolbar {
|
||||||
ToolbarItemGroup(placement: .navigationBarTrailing) {
|
ToolbarItem(placement: .navigationBarLeading) {
|
||||||
Menu {
|
Menu {
|
||||||
Button("DNS-over-TLS", action: self.addNewDoTServer)
|
Button("DNS-over-TLS", action: self.addNewDoTServer)
|
||||||
Button("DNS-over-HTTPS", action: self.addNewDoHServer)
|
Button("DNS-over-HTTPS", action: self.addNewDoHServer)
|
||||||
} label: {
|
} label: {
|
||||||
Image(systemName: "plus")
|
Image(systemName: "plus")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
ToolbarItem(placement: .navigationBarTrailing) {
|
||||||
EditButton()
|
EditButton()
|
||||||
}
|
}
|
||||||
ToolbarItem(placement: .status) {
|
ToolbarItem(placement: .status) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue