Fix. Android settings theme always show "Dark theme"

This commit is contained in:
grummbeer 2023-03-03 18:38:37 +01:00
parent 239d0291d0
commit 88bab7c2d0
34 changed files with 40 additions and 2 deletions

View File

@ -397,8 +397,13 @@ class _SettingsState extends State<SettingsPage> with WidgetsBindingObserver {
showLanguageSettings(gFFI.dialogManager);
}),
SettingsTile.navigation(
title: Text(translate('Dark Theme')),
leading: Icon(Icons.dark_mode),
title: Text(translate(
Theme.of(context).brightness == Brightness.light
? 'Dark Theme'
: 'Light Theme')),
leading: Icon(Theme.of(context).brightness == Brightness.light
? Icons.dark_mode
: Icons.light_mode),
onPressed: (context) {
showThemeSettings(gFFI.dialogManager);
},

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Seguretat"),
("Theme", "Tema"),
("Dark Theme", "Tema Fosc"),
("Light Theme", ""),
("Dark", "Fosc"),
("Light", "Clar"),
("Follow System", "Tema del sistema"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "安全"),
("Theme", "主题"),
("Dark Theme", "暗黑主题"),
("Light Theme", ""),
("Dark", "黑暗"),
("Light", "明亮"),
("Follow System", "跟随系统"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", ""),
("Theme", ""),
("Dark Theme", ""),
("Light Theme", ""),
("Dark", ""),
("Light", ""),
("Follow System", ""),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Sikkerhed"),
("Theme", "Thema"),
("Dark Theme", "Mørk Tema"),
("Light Theme", ""),
("Dark", "Mørk"),
("Light", "Lys"),
("Follow System", "Følg System"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Sicherheit"),
("Theme", "Farbgebung"),
("Dark Theme", "Dunkle Farbgebung"),
("Light Theme", "Helle Farbgebung"),
("Dark", "Dunkel"),
("Light", "Hell"),
("Follow System", "Systemstandard"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", ""),
("Theme", ""),
("Dark Theme", ""),
("Light Theme", ""),
("Dark", ""),
("Light", ""),
("Follow System", ""),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Seguridad"),
("Theme", "Tema"),
("Dark Theme", "Tema Oscuro"),
("Light Theme", ""),
("Dark", "Oscuro"),
("Light", "Claro"),
("Follow System", "Tema del sistema"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "امنیت"),
("Theme", "نمایه"),
("Dark Theme", "نمایه تیره"),
("Light Theme", ""),
("Dark", "تیره"),
("Light", "روشن"),
("Follow System", "پیروی از سیستم"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Sécurité"),
("Theme", "Thème"),
("Dark Theme", "Thème somble"),
("Light Theme", ""),
("Dark", "Sombre"),
("Light", "Clair"),
("Follow System", "Suivi système"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Ασφάλεια"),
("Theme", "Θέμα"),
("Dark Theme", "Σκούρο θέμα"),
("Light Theme", ""),
("Dark", "Σκούρο"),
("Light", "Φωτεινό"),
("Follow System", "Από το σύστημα"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Biztonság"),
("Theme", "Téma"),
("Dark Theme", "Sötét téma"),
("Light Theme", ""),
("Dark", "Sötét"),
("Light", "Világos"),
("Follow System", ""),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Keamanan"),
("Theme", "Tema"),
("Dark Theme", "Tema gelap"),
("Light Theme", ""),
("Dark", "Gelap"),
("Light", "Terang"),
("Follow System", "Ikuti sistem"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Sicurezza"),
("Theme", "Tema"),
("Dark Theme", "Tema Scuro"),
("Light Theme", ""),
("Dark", "Scuro"),
("Light", "Chiaro"),
("Follow System", "Segui il sistema"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", ""),
("Theme", ""),
("Dark Theme", ""),
("Light Theme", ""),
("Dark", ""),
("Light", ""),
("Follow System", ""),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", ""),
("Theme", ""),
("Dark Theme", ""),
("Light Theme", ""),
("Dark", ""),
("Light", ""),
("Follow System", ""),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", ""),
("Theme", ""),
("Dark Theme", ""),
("Light Theme", ""),
("Dark", ""),
("Light", ""),
("Follow System", ""),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Beveiliging"),
("Theme", "Thema"),
("Dark Theme", "Donker Thema"),
("Light Theme", ""),
("Dark", "Donker"),
("Light", "Licht"),
("Follow System", "Volg Systeem"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Zabezpieczenia"),
("Theme", "Motyw"),
("Dark Theme", "Ciemny motyw"),
("Light Theme", ""),
("Dark", "Ciemny"),
("Light", "Jasny"),
("Follow System", "Zgodny z systemem"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", ""),
("Theme", ""),
("Dark Theme", ""),
("Light Theme", ""),
("Dark", ""),
("Light", ""),
("Follow System", ""),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Segurança"),
("Theme", "Tema"),
("Dark Theme", "Tema escuro"),
("Light Theme", ""),
("Dark", "Escuro"),
("Light", "Claro"),
("Follow System", "Seguir sistema"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Securitate"),
("Theme", "Temă"),
("Dark Theme", "Temă întunecată"),
("Light Theme", ""),
("Dark", "Întunecat"),
("Light", "Luminos"),
("Follow System", "Urmărește sistem"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Безопасность"),
("Theme", "Тема"),
("Dark Theme", "Тёмная тема"),
("Light Theme", ""),
("Dark", "Тёмная"),
("Light", "Светлая"),
("Follow System", "Системная"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", ""),
("Theme", ""),
("Dark Theme", ""),
("Light Theme", ""),
("Dark", ""),
("Light", ""),
("Follow System", ""),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Varnost"),
("Theme", "Tema"),
("Dark Theme", "Temna tema"),
("Light Theme", ""),
("Dark", "Temna"),
("Light", "Svetla"),
("Follow System", "Sistemska"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Siguria"),
("Theme", "Theme"),
("Dark Theme", "Theme e errët"),
("Light Theme", ""),
("Dark", "E errët"),
("Light", "Drita"),
("Follow System", "Ndiq sistemin"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Bezbednost"),
("Theme", "Tema"),
("Dark Theme", "Tamna tema"),
("Light Theme", ""),
("Dark", "Tamno"),
("Light", "Svetlo"),
("Follow System", "Prema sistemu"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Säkerhet"),
("Theme", "Tema"),
("Dark Theme", "Mörkt tema"),
("Light Theme", ""),
("Dark", "Mörk"),
("Light", "Ljus"),
("Follow System", "Följ system"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", ""),
("Theme", ""),
("Dark Theme", ""),
("Light Theme", ""),
("Dark", ""),
("Light", ""),
("Follow System", ""),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "ความปลอดภัย"),
("Theme", "ธีม"),
("Dark Theme", "ธีมมืด"),
("Light Theme", ""),
("Dark", "มืด"),
("Light", "สว่าง"),
("Follow System", "ตามระบบ"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Güvenlik"),
("Theme", "Tema"),
("Dark Theme", "Koyu Tema"),
("Light Theme", ""),
("Dark", "Koyu"),
("Light", "ık"),
("Follow System", "Sisteme Uy"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "安全"),
("Theme", "主題"),
("Dark Theme", "暗黑主題"),
("Light Theme", ""),
("Dark", "黑暗"),
("Light", "明亮"),
("Follow System", "跟隨系統"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Безпека"),
("Theme", "Тема"),
("Dark Theme", "Темна тема"),
("Light Theme", ""),
("Dark", "Темна"),
("Light", "Світла"),
("Follow System", "Як у системі"),

View File

@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", ""),
("Theme", ""),
("Dark Theme", ""),
("Light Theme", ""),
("Dark", ""),
("Light", ""),
("Follow System", ""),