mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 23:48:29 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user