mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
update buttons on welcome screen to work for macos
This commit is contained in:
parent
903e58b3c5
commit
b3310c61c7
1 changed files with 12 additions and 1 deletions
|
|
@ -43,7 +43,15 @@ struct WelcomeView: View {
|
|||
headlineText
|
||||
|
||||
Button(
|
||||
action: { showAboutPage = true },
|
||||
action: {
|
||||
#if os(iOS)
|
||||
showAboutPage = true
|
||||
#else
|
||||
if let url = URL(string: "https://omnivore.app/about") {
|
||||
NSWorkspace.shared.open(url)
|
||||
}
|
||||
#endif
|
||||
},
|
||||
label: {
|
||||
HStack(spacing: 4) {
|
||||
Text("Learn more")
|
||||
|
|
@ -159,6 +167,9 @@ struct WelcomeView: View {
|
|||
}
|
||||
)
|
||||
.padding(.vertical)
|
||||
#if os(macOS)
|
||||
.buttonStyle(PlainButtonStyle())
|
||||
#endif
|
||||
|
||||
return
|
||||
VStack(alignment: .center, spacing: 16) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue