Tweak auto theme message

This updates the auto theme explanation to make it more obvious that it follows
the system theme when on iOS 13+.

Fixes https://github.com/vector-im/element-ios/issues/2860
This commit is contained in:
J. Ryan Stinnett
2021-06-10 23:19:44 +01:00
parent e20db845f8
commit a166c93e99
4 changed files with 22 additions and 7 deletions

View File

@@ -3571,9 +3571,18 @@ TableViewSectionsDelegate>
autoAction = [UIAlertAction actionWithTitle:NSLocalizedStringFromTable(@"settings_ui_theme_auto", @"Vector", nil)
style:UIAlertActionStyleDefault
handler:actionBlock];
// Explain what is "auto"
themePickerMessage = NSLocalizedStringFromTable(@"settings_ui_theme_picker_message", @"Vector", nil);
if (@available(iOS 13, *))
{
// Observe application did become active for iOS appearance setting changes
themePickerMessage = NSLocalizedStringFromTable(@"settings_ui_theme_picker_message_match_system_theme", @"Vector", nil);
}
else
{
// Observe "Invert Colours" settings changes (available since iOS 11)
themePickerMessage = NSLocalizedStringFromTable(@"settings_ui_theme_picker_message_invert_colours", @"Vector", nil);
}
lightAction = [UIAlertAction actionWithTitle:NSLocalizedStringFromTable(@"settings_ui_theme_light", @"Vector", nil)
style:UIAlertActionStyleDefault