Rearrange settings

This commit is contained in:
Justin Mazzocchi 2021-02-22 20:43:08 -08:00
parent e5d8a4d132
commit 15c1c367df
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C
2 changed files with 4 additions and 5 deletions

View file

@ -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";

View file

@ -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