mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-21 22:56:36 +00:00
Make it clear that custom theme are disabled if match system enabled close #277
This commit is contained in:
parent
7d435d7557
commit
ff17622cb9
10 changed files with 23 additions and 4 deletions
IceCubesApp
App/Tabs/Settings
Resources/Localization
de.lproj
en.lproj
es.lproj
it.lproj
ja.lproj
nl.lproj
tr.lproj
zh-Hans.lproj
|
@ -13,12 +13,22 @@ struct DisplaySettingsView: View {
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
Form {
|
Form {
|
||||||
Section("settings.display.section.theme") {
|
Section {
|
||||||
Toggle("settings.display.theme.systemColor", isOn: $theme.followSystemColorScheme)
|
Toggle("settings.display.theme.systemColor", isOn: $theme.followSystemColorScheme)
|
||||||
themeSelectorButton
|
themeSelectorButton
|
||||||
ColorPicker("settings.display.theme.tint", selection: $theme.tintColor)
|
Group {
|
||||||
ColorPicker("settings.display.theme.background", selection: $theme.primaryBackgroundColor)
|
ColorPicker("settings.display.theme.tint", selection: $theme.tintColor)
|
||||||
ColorPicker("settings.display.theme.secondary-background", selection: $theme.secondaryBackgroundColor)
|
ColorPicker("settings.display.theme.background", selection: $theme.primaryBackgroundColor)
|
||||||
|
ColorPicker("settings.display.theme.secondary-background", selection: $theme.secondaryBackgroundColor)
|
||||||
|
}
|
||||||
|
.disabled(theme.followSystemColorScheme)
|
||||||
|
.opacity(theme.followSystemColorScheme ? 0.5 : 1.0)
|
||||||
|
} header: {
|
||||||
|
Text("settings.display.section.theme")
|
||||||
|
} footer: {
|
||||||
|
if theme.followSystemColorScheme {
|
||||||
|
Text("settings.display.section.theme.footer")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.listRowBackground(theme.primaryBackgroundColor)
|
.listRowBackground(theme.primaryBackgroundColor)
|
||||||
|
|
||||||
|
|
|
@ -100,6 +100,7 @@ struct PushNotificationsView: View {
|
||||||
} footer: {
|
} footer: {
|
||||||
Text("settings.push.duplicate.footer")
|
Text("settings.push.duplicate.footer")
|
||||||
}
|
}
|
||||||
|
.listRowBackground(theme.primaryBackgroundColor)
|
||||||
|
|
||||||
}
|
}
|
||||||
.navigationTitle("settings.push.navigation-title")
|
.navigationTitle("settings.push.navigation-title")
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
"settings.display.restore" = "Standard wiederherstellen";
|
"settings.display.restore" = "Standard wiederherstellen";
|
||||||
"settings.display.section.display" = "Anzeigen";
|
"settings.display.section.display" = "Anzeigen";
|
||||||
"settings.display.section.theme" = "Design";
|
"settings.display.section.theme" = "Design";
|
||||||
|
"settings.display.section.theme.footer" = "Custom colors can only be set if match system color scheme is disabled";
|
||||||
"settings.display.status.action-buttons" = "Status Aktions-Buttons";
|
"settings.display.status.action-buttons" = "Status Aktions-Buttons";
|
||||||
"settings.display.status.media-style" = "Status Medien";
|
"settings.display.status.media-style" = "Status Medien";
|
||||||
"settings.display.translate-button" = "Übersetzen-Button anzeigen";
|
"settings.display.translate-button" = "Übersetzen-Button anzeigen";
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
"settings.display.restore" = "Restore defaults";
|
"settings.display.restore" = "Restore defaults";
|
||||||
"settings.display.section.display" = "Display";
|
"settings.display.section.display" = "Display";
|
||||||
"settings.display.section.theme" = "Theme";
|
"settings.display.section.theme" = "Theme";
|
||||||
|
"settings.display.section.theme.footer" = "Custom colors can only be set if match system color scheme is disabled";
|
||||||
"settings.display.status.action-buttons" = "Status action buttons";
|
"settings.display.status.action-buttons" = "Status action buttons";
|
||||||
"settings.display.status.media-style" = "Status media style";
|
"settings.display.status.media-style" = "Status media style";
|
||||||
"settings.display.translate-button" = "Show translate button";
|
"settings.display.translate-button" = "Show translate button";
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
"settings.display.restore" = "Restaurar ajustes predeterminados";
|
"settings.display.restore" = "Restaurar ajustes predeterminados";
|
||||||
"settings.display.section.display" = "Apariencia";
|
"settings.display.section.display" = "Apariencia";
|
||||||
"settings.display.section.theme" = "Tema";
|
"settings.display.section.theme" = "Tema";
|
||||||
|
"settings.display.section.theme.footer" = "Custom colors can only be set if match system color scheme is disabled";
|
||||||
"settings.display.status.action-buttons" = "Botones de acción";
|
"settings.display.status.action-buttons" = "Botones de acción";
|
||||||
"settings.display.status.media-style" = "Estilo del contenido multimedia";
|
"settings.display.status.media-style" = "Estilo del contenido multimedia";
|
||||||
"settings.display.translate-button" = "Mostrar botón para traducir";
|
"settings.display.translate-button" = "Mostrar botón para traducir";
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
"settings.display.restore" = "Ripristina i valori predefiniti";
|
"settings.display.restore" = "Ripristina i valori predefiniti";
|
||||||
"settings.display.section.display" = "Visualizzazione";
|
"settings.display.section.display" = "Visualizzazione";
|
||||||
"settings.display.section.theme" = "Tema";
|
"settings.display.section.theme" = "Tema";
|
||||||
|
"settings.display.section.theme.footer" = "Custom colors can only be set if match system color scheme is disabled";
|
||||||
"settings.display.status.action-buttons" = "Bottoni di azione";
|
"settings.display.status.action-buttons" = "Bottoni di azione";
|
||||||
"settings.display.status.media-style" = "Stile dei media";
|
"settings.display.status.media-style" = "Stile dei media";
|
||||||
"settings.display.translate-button" = "Mostra bottone per la traduzione";
|
"settings.display.translate-button" = "Mostra bottone per la traduzione";
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
"settings.display.restore" = "デフォルトに戻す";
|
"settings.display.restore" = "デフォルトに戻す";
|
||||||
"settings.display.section.display" = "表示";
|
"settings.display.section.display" = "表示";
|
||||||
"settings.display.section.theme" = "テーマ";
|
"settings.display.section.theme" = "テーマ";
|
||||||
|
"settings.display.section.theme.footer" = "Custom colors can only be set if match system color scheme is disabled";
|
||||||
"settings.display.status.action-buttons" = "ステータスアクションボタン";
|
"settings.display.status.action-buttons" = "ステータスアクションボタン";
|
||||||
"settings.display.status.media-style" = "ステータスメディアスタイル";
|
"settings.display.status.media-style" = "ステータスメディアスタイル";
|
||||||
"settings.display.translate-button" = "翻訳ボタンの表示";
|
"settings.display.translate-button" = "翻訳ボタンの表示";
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
"settings.display.restore" = "Stel opnieuw in";
|
"settings.display.restore" = "Stel opnieuw in";
|
||||||
"settings.display.section.display" = "Weergave";
|
"settings.display.section.display" = "Weergave";
|
||||||
"settings.display.section.theme" = "Thema";
|
"settings.display.section.theme" = "Thema";
|
||||||
|
"settings.display.section.theme.footer" = "Custom colors can only be set if match system color scheme is disabled";
|
||||||
"settings.display.status.action-buttons" = "Actieknoppen";
|
"settings.display.status.action-buttons" = "Actieknoppen";
|
||||||
"settings.display.status.media-style" = "Mediastijl";
|
"settings.display.status.media-style" = "Mediastijl";
|
||||||
"settings.display.translate-button" = "Toon vertaalknop";
|
"settings.display.translate-button" = "Toon vertaalknop";
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
"settings.display.restore" = "Varsayılan Ayarlara Geri Döndür";
|
"settings.display.restore" = "Varsayılan Ayarlara Geri Döndür";
|
||||||
"settings.display.section.display" = "Gösterim";
|
"settings.display.section.display" = "Gösterim";
|
||||||
"settings.display.section.theme" = "Tema";
|
"settings.display.section.theme" = "Tema";
|
||||||
|
"settings.display.section.theme.footer" = "Custom colors can only be set if match system color scheme is disabled";
|
||||||
"settings.display.status.action-buttons" = "Durum Aksiyon Butonları";
|
"settings.display.status.action-buttons" = "Durum Aksiyon Butonları";
|
||||||
"settings.display.status.media-style" = "Durum Medya Stili";
|
"settings.display.status.media-style" = "Durum Medya Stili";
|
||||||
"settings.display.translate-button" = "Çeviri Butonunu Göster";
|
"settings.display.translate-button" = "Çeviri Butonunu Göster";
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
"settings.display.restore" = "恢复默认设置";
|
"settings.display.restore" = "恢复默认设置";
|
||||||
"settings.display.section.display" = "显示";
|
"settings.display.section.display" = "显示";
|
||||||
"settings.display.section.theme" = "主题";
|
"settings.display.section.theme" = "主题";
|
||||||
|
"settings.display.section.theme.footer" = "Custom colors can only be set if match system color scheme is disabled";
|
||||||
"settings.display.status.action-buttons" = "导航栏选项";
|
"settings.display.status.action-buttons" = "导航栏选项";
|
||||||
"settings.display.status.media-style" = "导航栏排列";
|
"settings.display.status.media-style" = "导航栏排列";
|
||||||
"settings.display.translate-button" = "显示翻译按钮";
|
"settings.display.translate-button" = "显示翻译按钮";
|
||||||
|
|
Loading…
Reference in a new issue