diff --git a/IceCubesApp/App/Tabs/Settings/DisplaySettingsView.swift b/IceCubesApp/App/Tabs/Settings/DisplaySettingsView.swift index d6f4f5aa..a65f4813 100644 --- a/IceCubesApp/App/Tabs/Settings/DisplaySettingsView.swift +++ b/IceCubesApp/App/Tabs/Settings/DisplaySettingsView.swift @@ -13,12 +13,22 @@ struct DisplaySettingsView: View { var body: some View { Form { - Section("settings.display.section.theme") { + Section { Toggle("settings.display.theme.systemColor", isOn: $theme.followSystemColorScheme) themeSelectorButton - ColorPicker("settings.display.theme.tint", selection: $theme.tintColor) - ColorPicker("settings.display.theme.background", selection: $theme.primaryBackgroundColor) - ColorPicker("settings.display.theme.secondary-background", selection: $theme.secondaryBackgroundColor) + Group { + ColorPicker("settings.display.theme.tint", selection: $theme.tintColor) + 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) diff --git a/IceCubesApp/App/Tabs/Settings/PushNotificationsView.swift b/IceCubesApp/App/Tabs/Settings/PushNotificationsView.swift index 0ef27d2e..6a3c0d4e 100644 --- a/IceCubesApp/App/Tabs/Settings/PushNotificationsView.swift +++ b/IceCubesApp/App/Tabs/Settings/PushNotificationsView.swift @@ -100,6 +100,7 @@ struct PushNotificationsView: View { } footer: { Text("settings.push.duplicate.footer") } + .listRowBackground(theme.primaryBackgroundColor) } .navigationTitle("settings.push.navigation-title") diff --git a/IceCubesApp/Resources/Localization/de.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/de.lproj/Localizable.strings index 43f19852..09410747 100644 --- a/IceCubesApp/Resources/Localization/de.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/de.lproj/Localizable.strings @@ -62,6 +62,7 @@ "settings.display.restore" = "Standard wiederherstellen"; "settings.display.section.display" = "Anzeigen"; "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.media-style" = "Status Medien"; "settings.display.translate-button" = "Übersetzen-Button anzeigen"; diff --git a/IceCubesApp/Resources/Localization/en.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/en.lproj/Localizable.strings index 71629277..500d364d 100644 --- a/IceCubesApp/Resources/Localization/en.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/en.lproj/Localizable.strings @@ -62,6 +62,7 @@ "settings.display.restore" = "Restore defaults"; "settings.display.section.display" = "Display"; "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.media-style" = "Status media style"; "settings.display.translate-button" = "Show translate button"; diff --git a/IceCubesApp/Resources/Localization/es.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/es.lproj/Localizable.strings index 157e89bf..d06b92ef 100644 --- a/IceCubesApp/Resources/Localization/es.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/es.lproj/Localizable.strings @@ -62,6 +62,7 @@ "settings.display.restore" = "Restaurar ajustes predeterminados"; "settings.display.section.display" = "Apariencia"; "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.media-style" = "Estilo del contenido multimedia"; "settings.display.translate-button" = "Mostrar botón para traducir"; diff --git a/IceCubesApp/Resources/Localization/it.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/it.lproj/Localizable.strings index 784357be..aa674be7 100644 --- a/IceCubesApp/Resources/Localization/it.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/it.lproj/Localizable.strings @@ -62,6 +62,7 @@ "settings.display.restore" = "Ripristina i valori predefiniti"; "settings.display.section.display" = "Visualizzazione"; "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.media-style" = "Stile dei media"; "settings.display.translate-button" = "Mostra bottone per la traduzione"; diff --git a/IceCubesApp/Resources/Localization/ja.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/ja.lproj/Localizable.strings index 7886a277..2dd6a869 100644 --- a/IceCubesApp/Resources/Localization/ja.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/ja.lproj/Localizable.strings @@ -62,6 +62,7 @@ "settings.display.restore" = "デフォルトに戻す"; "settings.display.section.display" = "表示"; "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.media-style" = "ステータスメディアスタイル"; "settings.display.translate-button" = "翻訳ボタンの表示"; diff --git a/IceCubesApp/Resources/Localization/nl.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/nl.lproj/Localizable.strings index c74beb03..ac084bec 100644 --- a/IceCubesApp/Resources/Localization/nl.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/nl.lproj/Localizable.strings @@ -62,6 +62,7 @@ "settings.display.restore" = "Stel opnieuw in"; "settings.display.section.display" = "Weergave"; "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.media-style" = "Mediastijl"; "settings.display.translate-button" = "Toon vertaalknop"; diff --git a/IceCubesApp/Resources/Localization/tr.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/tr.lproj/Localizable.strings index 25893a6d..78e002bf 100644 --- a/IceCubesApp/Resources/Localization/tr.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/tr.lproj/Localizable.strings @@ -62,6 +62,7 @@ "settings.display.restore" = "Varsayılan Ayarlara Geri Döndür"; "settings.display.section.display" = "Gösterim"; "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.media-style" = "Durum Medya Stili"; "settings.display.translate-button" = "Çeviri Butonunu Göster"; diff --git a/IceCubesApp/Resources/Localization/zh-Hans.lproj/Localizable.strings b/IceCubesApp/Resources/Localization/zh-Hans.lproj/Localizable.strings index 2a70b58b..ee2e981e 100644 --- a/IceCubesApp/Resources/Localization/zh-Hans.lproj/Localizable.strings +++ b/IceCubesApp/Resources/Localization/zh-Hans.lproj/Localizable.strings @@ -62,6 +62,7 @@ "settings.display.restore" = "恢复默认设置"; "settings.display.section.display" = "显示"; "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.media-style" = "导航栏排列"; "settings.display.translate-button" = "显示翻译按钮";