diff --git a/Mythic/Localizable.xcstrings b/Mythic/Localizable.xcstrings index 6de54203..36436354 100644 --- a/Mythic/Localizable.xcstrings +++ b/Mythic/Localizable.xcstrings @@ -4080,7 +4080,7 @@ "comment" : "A label or link related to Discord.", "isCommentAutoGenerated" : true }, - "Discord Server" : { + "Discord server" : { "comment" : "A link to the Mythic Discord server.", "isCommentAutoGenerated" : true }, @@ -4299,10 +4299,6 @@ "comment" : "A label or link to documentation.", "isCommentAutoGenerated" : true }, - "Donate to the developer" : { - "comment" : "A button or link for making a donation to the developer.", - "isCommentAutoGenerated" : true - }, "Done" : { "comment" : "A button label indicating completion of a process.", "isCommentAutoGenerated" : true, @@ -7274,6 +7270,10 @@ "comment" : "A label for the game card size setting.", "isCommentAutoGenerated" : true }, + "Games compability" : { + "comment" : "A section in the \"Help\" menu that links to a Google Sheet detailing compatibility between games and Mythic.", + "isCommentAutoGenerated" : true + }, "Games in your library will appear here.\nIf there are games in your library and they're not appearing, try restarting Mythic." : { "comment" : "An informative message in the library view with troubleshooting advice.", "isCommentAutoGenerated" : true @@ -7291,7 +7291,11 @@ "isCommentAutoGenerated" : true }, "GitHub Repository" : { - "comment" : "A link label for the GitHub repository.", + "comment" : "A label for a link to the Mythic GitHub repository.", + "isCommentAutoGenerated" : true + }, + "GitHub Sponsors" : { + "comment" : "A button label that links to the GitHub Sponsors page.", "isCommentAutoGenerated" : true }, "Grid" : { @@ -9106,6 +9110,10 @@ } } }, + "Ko-Fi" : { + "comment" : "A button that links to Ko-Fi to support the developer.", + "isCommentAutoGenerated" : true + }, "Launch Arguments" : { "comment" : "A label for command-line arguments passed to games at launch.", "isCommentAutoGenerated" : true, diff --git a/Mythic/MythicApp.swift b/Mythic/MythicApp.swift index cc44a2e1..5acb6847 100644 --- a/Mythic/MythicApp.swift +++ b/Mythic/MythicApp.swift @@ -86,46 +86,20 @@ struct MythicApp: App { .disabled(isOnboardingPresented) } - CommandGroup(replacing: .help){ - Button("Website") { - if let websiteURL = URL(string: "https://getmythic.app/") { - NSWorkspace.shared.open(websiteURL) - } - } - - Button("Documentation") { - if let docUrl = URL(string: "https://docs.getmythic.app/") { - NSWorkspace.shared.open(docUrl) - } - } - Button("Discord Server") { - if let discordInviteUrl = URL(string: "https://discord.gg/kQKdvjTVqh") { - NSWorkspace.shared.open(discordInviteUrl) - } - } - Button("GitHub Repository") { - if let githubUrl = URL(string: "https://github.com/MythicApp/Mythic") { - NSWorkspace.shared.open(githubUrl) - } - } - Button("Compatibility List") { - if let gameListURL = URL(string: "https://docs.google.com/spreadsheets/d/1W_1UexC1VOcbP2CHhoZBR5-8koH-ZPxJBDWntwH-tsc/") { - NSWorkspace.shared.open(gameListURL) - } - } + CommandGroup(replacing: .help) { + Link("Documentation", destination: URL(string: "https://docs.getmythic.app/")!) + Link("Discord server", destination: URL(string: "https://discord.gg/kQKdvjTVqh")!) + Link("Games compability", + destination: URL(string: "https://docs.google.com/spreadsheets/d/1W_1UexC1VOcbP2CHhoZBR5-8koH-ZPxJBDWntwH-tsc/")!) - Divider() - - Button("Donate to the developer", systemImage: "heart.fill") { - if let donationUrl = URL(string: "https://ko-fi.com/vapidinfinity") { - NSWorkspace.shared.open(donationUrl) - } + Section("Support the project") { + Link("GitHub Sponsors", destination: URL(string: "https://github.com/sponsors/MythicApp")!) + Link("Ko-Fi", destination: URL(string: "https://ko-fi.com/vapidinfinity")!) } - Button("Support the project", systemImage: "heart.fill") { - if let donationUrl = URL(string: "https://github.com/sponsors/MythicApp") { - NSWorkspace.shared.open(donationUrl) - } + Section("More") { + Link("GitHub repository", destination: URL(string: "https://github.com/MythicApp/Mythic")!) + Link("Website", destination: URL(string: "https://getmythic.app/")!) } } }