From 15c1c367dff7368af52b67a10bd65993dc19452c Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Mon, 22 Feb 2021 20:43:08 -0800 Subject: [PATCH] Rearrange settings --- Localizations/Localizable.strings | 3 +-- Views/SwiftUI/PreferencesView.swift | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Localizations/Localizable.strings b/Localizations/Localizable.strings index 47b2909..bbfd3da 100644 --- a/Localizations/Localizable.strings +++ b/Localizations/Localizable.strings @@ -179,8 +179,7 @@ "preferences.media.avatars.animate.profiles" = "In profiles"; "preferences.media.avatars.animate.never" = "Never"; "preferences.media.custom-emojis.animate" = "Animate custom emoji"; -"preferences.media.headers" = "Headers"; -"preferences.media.headers.animate" = "Animate headers"; +"preferences.media.headers.animate" = "Animate profile headers"; "preferences.media.autoplay" = "Autoplay"; "preferences.media.autoplay.gifs" = "Autoplay GIFs"; "preferences.media.autoplay.videos" = "Autoplay videos"; diff --git a/Views/SwiftUI/PreferencesView.swift b/Views/SwiftUI/PreferencesView.swift index f3f1304..aebaf6b 100644 --- a/Views/SwiftUI/PreferencesView.swift +++ b/Views/SwiftUI/PreferencesView.swift @@ -111,12 +111,12 @@ struct PreferencesView: View { Text(option.localizedStringKey).tag(option) } } - Toggle("preferences.media.headers.animate", - isOn: reduceMotion ? .constant(false) : $identityContext.appPreferences.animateHeaders) - .disabled(reduceMotion) Toggle("preferences.media.custom-emojis.animate", isOn: reduceMotion ? .constant(false) : $identityContext.appPreferences.animateCustomEmojis) .disabled(reduceMotion) + Toggle("preferences.media.headers.animate", + isOn: reduceMotion ? .constant(false) : $identityContext.appPreferences.animateHeaders) + .disabled(reduceMotion) } .disabled(reduceMotion) if viewModel.identityContext.identity.authenticated