feat: toolbar items

This commit is contained in:
mrFq1
2023-05-27 18:14:13 +08:00
parent 33a4eab579
commit 30922826e8
8 changed files with 134 additions and 54 deletions
@@ -18,10 +18,15 @@ struct ConnectionsView: View {
filterString: searchString)
.background(Color(nsColor: .textBackgroundColor))
.searchable(text: $searchString)
.toolbar {
ToolbarItem {
Button {
ApiRequest.closeAllConnection()
} label: {
Image(systemName: "stop.circle.fill")
}
}
}
}
}