Add link to system settings (#404)

* Add link to system settings

* Add to Localizable.strings

* Add .tint(.black) so that it matches NavigationLink
This commit is contained in:
Paul Traylor 2023-01-27 14:53:05 +09:00 committed by GitHub
parent e811d5dd39
commit 642cca4002
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 14 additions and 0 deletions

View file

@ -2,6 +2,7 @@ import Account
import AppAccount
import DesignSystem
import Env
import Foundation
import Models
import Network
import SwiftUI
@ -104,6 +105,12 @@ struct SettingsTabs: View {
NavigationLink(destination: ContentSettingsView()) {
Label("settings.general.content", systemImage: "rectangle.fill.on.rectangle.fill")
}
Link(destination: URL(string: UIApplication.openSettingsURLString)!) {
Label("settings.system", systemImage: "gear")
// Tint our label black, so that it matches the other NavigationLink instead of
// defaulting to highlighted like a Link
.tint(.black)
}
}
.listRowBackground(theme.primaryBackgroundColor)
}

View file

@ -111,6 +111,7 @@
"settings.other.hide-openai" = "Aktiviere 🤖 Helfer";
"settings.other.social-keyboard" = "Soziale Tastatur aktivieren";
"settings.general.content" = "Inhaltseinstellungen";
"settings.system" = "System Settings";
"settings.content.navigation-title" = "Inhaltseinstellungen";
"settings.content.use-instance-settings" = "Servereinstellungen verwenden";
"settings.content.main-toggle.description" = "Die Einstellungen von der Heiminstanz übernehmen";

View file

@ -87,6 +87,7 @@
"settings.push.new-posts" = "New Posts";
"settings.push.polls" = "Poll Results";
"settings.general.content" = "Content Settings";
"settings.system" = "System Settings";
"settings.content.navigation-title" = "Content Settings";
"settings.content.use-instance-settings" = "Use server settings";
"settings.content.main-toggle.description" = "Use the settings from your home Instance";

View file

@ -111,6 +111,7 @@
"settings.other.hide-openai" = "Activar ayudante 🤖";
"settings.other.social-keyboard" = "Activar teclado social";
"settings.general.content" = "Ajustes de contenido";
"settings.system" = "System Settings";
"settings.content.navigation-title" = "Ajustes de contenido";
"settings.content.use-instance-settings" = "Usar ajustes del servidor";
"settings.content.main-toggle.description" = "Usar ajustes de tu instancia inicial";

View file

@ -111,6 +111,7 @@
"settings.other.hide-openai" = "Abilita l'aiuto del 🤖";
"settings.other.social-keyboard" = "Abilita social keyboard";
"settings.general.content" = "Impostazioni dei contenuti";
"settings.system" = "System Settings";
"settings.content.navigation-title" = "Impostazioni dei contenuti";
"settings.content.use-instance-settings" = "Utilizza le impostazioni del server";
"settings.content.main-toggle.description" = "Utilizza le impostazioni provenienti dalla tua istanza Mastodon";

View file

@ -341,6 +341,7 @@
"status.visibility.public" = "全員";
"status.visibility.unlisted" = "リスト外";
"settings.general.content" = "コンテンツ設定";
"settings.system" = "System Settings";
"settings.content.navigation-title" = "コンテンツ設定";
"settings.content.use-instance-settings" = "サーバー設定を使用する";
"settings.content.main-toggle.description" = "ホームインスタンスの設定を使用する";

View file

@ -111,6 +111,7 @@
"settings.other.hide-openai" = "Schakel 🤖-hulp in";
"settings.other.social-keyboard" = "Schakel social-toetsenbord in";
"settings.general.content" = "Inhoud";
"settings.system" = "System Settings";
"settings.content.navigation-title" = "Inhoud";
"settings.content.use-instance-settings" = "Gebruik serverinstellingen";
"settings.content.main-toggle.description" = "Gebruik de instellingen van jouw thuisinstantie.";

View file

@ -112,6 +112,7 @@
"settings.other.social-keyboard" = "启用社交键盘";
"settings.general.content" = "内容设置";
"settings.system" = "System Settings";
"settings.content.navigation-title" = "内容设置";
"settings.content.use-instance-settings" = "使用服务器设置";
"settings.content.main-toggle.description" = "使用你主服务器的设置";