mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-20 13:26:03 +00:00
Cleanup menu bar
This commit is contained in:
1 parent
a87387cd1d
commit
bd5a0ae061
3 files changed
+51
-30
No files matched your search
@@ -29,6 +29,41 @@ struct WelcomeScreen: View {
|
||||
|
||||
Divider()
|
||||
|
||||
Button {
|
||||
getSupport()
|
||||
} label: {
|
||||
HStack {
|
||||
Label("GetSupport", systemImage: "questionmark.circle")
|
||||
|
||||
Spacer()
|
||||
|
||||
Image(systemName: "arrow.up.right")
|
||||
.opacity(0.3)
|
||||
}
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
.frame(height: 30)
|
||||
|
||||
|
||||
Button {
|
||||
openPrivacyPolicy()
|
||||
|
||||
} label: {
|
||||
|
||||
HStack {
|
||||
Label("PrivacyPolicy", systemImage: "hand.raised")
|
||||
|
||||
Spacer()
|
||||
|
||||
Image(systemName: "arrow.up.right")
|
||||
.opacity(0.3)
|
||||
}
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
.frame(height: 30)
|
||||
|
||||
Divider()
|
||||
|
||||
Label(Tabs.settings.title, systemImage: Tabs.settings.systemImage)
|
||||
.tag(Tabs.settings)
|
||||
.frame(height: 30)
|
||||
@@ -60,6 +95,18 @@ struct WelcomeScreen: View {
|
||||
}
|
||||
.frame(width: 1000, height: 600)
|
||||
}
|
||||
|
||||
func getSupport() {
|
||||
if let url = URL(string: "mailto:quickdrop@leonboettger.com?subject=QuickDrop") {
|
||||
NSWorkspace.shared.open(url)
|
||||
}
|
||||
}
|
||||
|
||||
func openPrivacyPolicy() {
|
||||
if let url = URL(string: "http://leonboettger.com/privacy") {
|
||||
NSWorkspace.shared.open(url)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user