mirror of
https://github.com/yattee/yattee.git
synced 2026-05-12 18:35:05 +00:00
Convert Contributors, Translators, Acknowledgements to macOS-native helpers
This commit is contained in:
@@ -11,13 +11,11 @@ struct AcknowledgementsView: View {
|
||||
@Environment(\.openURL) private var openURL
|
||||
|
||||
var body: some View {
|
||||
Form {
|
||||
Section {
|
||||
SettingsFormContainer {
|
||||
SettingsFormSection("settings.acknowledgements.dependencies.header") {
|
||||
dependencyLink("mpv", url: "https://github.com/mpv-player/mpv")
|
||||
dependencyLink("MPVKit", url: "https://github.com/mpvkit/MPVKit")
|
||||
dependencyLink("Nuke", url: "https://github.com/kean/Nuke")
|
||||
} header: {
|
||||
Text(String(localized: "settings.acknowledgements.dependencies.header"))
|
||||
}
|
||||
}
|
||||
.navigationTitle(String(localized: "settings.acknowledgements.title"))
|
||||
@@ -42,7 +40,11 @@ struct AcknowledgementsView: View {
|
||||
Image(systemName: "arrow.up.right")
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
.contentShape(Rectangle())
|
||||
}
|
||||
#if os(macOS)
|
||||
.buttonStyle(.plain)
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,13 +54,11 @@ struct ContributorsView: View {
|
||||
}
|
||||
|
||||
private var contributorsList: some View {
|
||||
Form {
|
||||
Section {
|
||||
SettingsFormContainer {
|
||||
SettingsFormSection(footer: "settings.contributors.section.footer") {
|
||||
ForEach(contributors) { contributor in
|
||||
contributorRow(contributor)
|
||||
}
|
||||
} footer: {
|
||||
Text(String(localized: "settings.contributors.section.footer"))
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -112,7 +110,11 @@ struct ContributorsView: View {
|
||||
Image(systemName: "arrow.up.right")
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
.contentShape(Rectangle())
|
||||
}
|
||||
#if os(macOS)
|
||||
.buttonStyle(.plain)
|
||||
#endif
|
||||
}
|
||||
|
||||
// MARK: - Data Loading
|
||||
|
||||
@@ -37,13 +37,11 @@ struct TranslationContributorsView: View {
|
||||
}
|
||||
|
||||
private var contributorsList: some View {
|
||||
Form {
|
||||
Section {
|
||||
SettingsFormContainer {
|
||||
SettingsFormSection(footer: "settings.translators.section.footer") {
|
||||
ForEach(contributors) { contributor in
|
||||
contributorRow(contributor)
|
||||
}
|
||||
} footer: {
|
||||
Text(String(localized: "settings.translators.section.footer"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user