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
+7 -2
View File
@@ -397,8 +397,13 @@ class _SettingsState extends State<SettingsPage> with WidgetsBindingObserver {
showLanguageSettings(gFFI.dialogManager); showLanguageSettings(gFFI.dialogManager);
}), }),
SettingsTile.navigation( SettingsTile.navigation(
title: Text(translate('Dark Theme')), title: Text(translate(
leading: Icon(Icons.dark_mode), 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) { onPressed: (context) {
showThemeSettings(gFFI.dialogManager); showThemeSettings(gFFI.dialogManager);
}, },
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Seguretat"), ("Security", "Seguretat"),
("Theme", "Tema"), ("Theme", "Tema"),
("Dark Theme", "Tema Fosc"), ("Dark Theme", "Tema Fosc"),
("Light Theme", ""),
("Dark", "Fosc"), ("Dark", "Fosc"),
("Light", "Clar"), ("Light", "Clar"),
("Follow System", "Tema del sistema"), ("Follow System", "Tema del sistema"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "安全"), ("Security", "安全"),
("Theme", "主题"), ("Theme", "主题"),
("Dark Theme", "暗黑主题"), ("Dark Theme", "暗黑主题"),
("Light Theme", ""),
("Dark", "黑暗"), ("Dark", "黑暗"),
("Light", "明亮"), ("Light", "明亮"),
("Follow System", "跟随系统"), ("Follow System", "跟随系统"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", ""), ("Security", ""),
("Theme", ""), ("Theme", ""),
("Dark Theme", ""), ("Dark Theme", ""),
("Light Theme", ""),
("Dark", ""), ("Dark", ""),
("Light", ""), ("Light", ""),
("Follow System", ""), ("Follow System", ""),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Sikkerhed"), ("Security", "Sikkerhed"),
("Theme", "Thema"), ("Theme", "Thema"),
("Dark Theme", "Mørk Tema"), ("Dark Theme", "Mørk Tema"),
("Light Theme", ""),
("Dark", "Mørk"), ("Dark", "Mørk"),
("Light", "Lys"), ("Light", "Lys"),
("Follow System", "Følg System"), ("Follow System", "Følg System"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Sicherheit"), ("Security", "Sicherheit"),
("Theme", "Farbgebung"), ("Theme", "Farbgebung"),
("Dark Theme", "Dunkle Farbgebung"), ("Dark Theme", "Dunkle Farbgebung"),
("Light Theme", "Helle Farbgebung"),
("Dark", "Dunkel"), ("Dark", "Dunkel"),
("Light", "Hell"), ("Light", "Hell"),
("Follow System", "Systemstandard"), ("Follow System", "Systemstandard"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", ""), ("Security", ""),
("Theme", ""), ("Theme", ""),
("Dark Theme", ""), ("Dark Theme", ""),
("Light Theme", ""),
("Dark", ""), ("Dark", ""),
("Light", ""), ("Light", ""),
("Follow System", ""), ("Follow System", ""),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Seguridad"), ("Security", "Seguridad"),
("Theme", "Tema"), ("Theme", "Tema"),
("Dark Theme", "Tema Oscuro"), ("Dark Theme", "Tema Oscuro"),
("Light Theme", ""),
("Dark", "Oscuro"), ("Dark", "Oscuro"),
("Light", "Claro"), ("Light", "Claro"),
("Follow System", "Tema del sistema"), ("Follow System", "Tema del sistema"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "امنیت"), ("Security", "امنیت"),
("Theme", "نمایه"), ("Theme", "نمایه"),
("Dark Theme", "نمایه تیره"), ("Dark Theme", "نمایه تیره"),
("Light Theme", ""),
("Dark", "تیره"), ("Dark", "تیره"),
("Light", "روشن"), ("Light", "روشن"),
("Follow System", "پیروی از سیستم"), ("Follow System", "پیروی از سیستم"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Sécurité"), ("Security", "Sécurité"),
("Theme", "Thème"), ("Theme", "Thème"),
("Dark Theme", "Thème somble"), ("Dark Theme", "Thème somble"),
("Light Theme", ""),
("Dark", "Sombre"), ("Dark", "Sombre"),
("Light", "Clair"), ("Light", "Clair"),
("Follow System", "Suivi système"), ("Follow System", "Suivi système"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Ασφάλεια"), ("Security", "Ασφάλεια"),
("Theme", "Θέμα"), ("Theme", "Θέμα"),
("Dark Theme", "Σκούρο θέμα"), ("Dark Theme", "Σκούρο θέμα"),
("Light Theme", ""),
("Dark", "Σκούρο"), ("Dark", "Σκούρο"),
("Light", "Φωτεινό"), ("Light", "Φωτεινό"),
("Follow System", "Από το σύστημα"), ("Follow System", "Από το σύστημα"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Biztonság"), ("Security", "Biztonság"),
("Theme", "Téma"), ("Theme", "Téma"),
("Dark Theme", "Sötét téma"), ("Dark Theme", "Sötét téma"),
("Light Theme", ""),
("Dark", "Sötét"), ("Dark", "Sötét"),
("Light", "Világos"), ("Light", "Világos"),
("Follow System", ""), ("Follow System", ""),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Keamanan"), ("Security", "Keamanan"),
("Theme", "Tema"), ("Theme", "Tema"),
("Dark Theme", "Tema gelap"), ("Dark Theme", "Tema gelap"),
("Light Theme", ""),
("Dark", "Gelap"), ("Dark", "Gelap"),
("Light", "Terang"), ("Light", "Terang"),
("Follow System", "Ikuti sistem"), ("Follow System", "Ikuti sistem"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Sicurezza"), ("Security", "Sicurezza"),
("Theme", "Tema"), ("Theme", "Tema"),
("Dark Theme", "Tema Scuro"), ("Dark Theme", "Tema Scuro"),
("Light Theme", ""),
("Dark", "Scuro"), ("Dark", "Scuro"),
("Light", "Chiaro"), ("Light", "Chiaro"),
("Follow System", "Segui il sistema"), ("Follow System", "Segui il sistema"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", ""), ("Security", ""),
("Theme", ""), ("Theme", ""),
("Dark Theme", ""), ("Dark Theme", ""),
("Light Theme", ""),
("Dark", ""), ("Dark", ""),
("Light", ""), ("Light", ""),
("Follow System", ""), ("Follow System", ""),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", ""), ("Security", ""),
("Theme", ""), ("Theme", ""),
("Dark Theme", ""), ("Dark Theme", ""),
("Light Theme", ""),
("Dark", ""), ("Dark", ""),
("Light", ""), ("Light", ""),
("Follow System", ""), ("Follow System", ""),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", ""), ("Security", ""),
("Theme", ""), ("Theme", ""),
("Dark Theme", ""), ("Dark Theme", ""),
("Light Theme", ""),
("Dark", ""), ("Dark", ""),
("Light", ""), ("Light", ""),
("Follow System", ""), ("Follow System", ""),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Beveiliging"), ("Security", "Beveiliging"),
("Theme", "Thema"), ("Theme", "Thema"),
("Dark Theme", "Donker Thema"), ("Dark Theme", "Donker Thema"),
("Light Theme", ""),
("Dark", "Donker"), ("Dark", "Donker"),
("Light", "Licht"), ("Light", "Licht"),
("Follow System", "Volg Systeem"), ("Follow System", "Volg Systeem"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Zabezpieczenia"), ("Security", "Zabezpieczenia"),
("Theme", "Motyw"), ("Theme", "Motyw"),
("Dark Theme", "Ciemny motyw"), ("Dark Theme", "Ciemny motyw"),
("Light Theme", ""),
("Dark", "Ciemny"), ("Dark", "Ciemny"),
("Light", "Jasny"), ("Light", "Jasny"),
("Follow System", "Zgodny z systemem"), ("Follow System", "Zgodny z systemem"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", ""), ("Security", ""),
("Theme", ""), ("Theme", ""),
("Dark Theme", ""), ("Dark Theme", ""),
("Light Theme", ""),
("Dark", ""), ("Dark", ""),
("Light", ""), ("Light", ""),
("Follow System", ""), ("Follow System", ""),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Segurança"), ("Security", "Segurança"),
("Theme", "Tema"), ("Theme", "Tema"),
("Dark Theme", "Tema escuro"), ("Dark Theme", "Tema escuro"),
("Light Theme", ""),
("Dark", "Escuro"), ("Dark", "Escuro"),
("Light", "Claro"), ("Light", "Claro"),
("Follow System", "Seguir sistema"), ("Follow System", "Seguir sistema"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Securitate"), ("Security", "Securitate"),
("Theme", "Temă"), ("Theme", "Temă"),
("Dark Theme", "Temă întunecată"), ("Dark Theme", "Temă întunecată"),
("Light Theme", ""),
("Dark", "Întunecat"), ("Dark", "Întunecat"),
("Light", "Luminos"), ("Light", "Luminos"),
("Follow System", "Urmărește sistem"), ("Follow System", "Urmărește sistem"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Безопасность"), ("Security", "Безопасность"),
("Theme", "Тема"), ("Theme", "Тема"),
("Dark Theme", "Тёмная тема"), ("Dark Theme", "Тёмная тема"),
("Light Theme", ""),
("Dark", "Тёмная"), ("Dark", "Тёмная"),
("Light", "Светлая"), ("Light", "Светлая"),
("Follow System", "Системная"), ("Follow System", "Системная"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", ""), ("Security", ""),
("Theme", ""), ("Theme", ""),
("Dark Theme", ""), ("Dark Theme", ""),
("Light Theme", ""),
("Dark", ""), ("Dark", ""),
("Light", ""), ("Light", ""),
("Follow System", ""), ("Follow System", ""),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Varnost"), ("Security", "Varnost"),
("Theme", "Tema"), ("Theme", "Tema"),
("Dark Theme", "Temna tema"), ("Dark Theme", "Temna tema"),
("Light Theme", ""),
("Dark", "Temna"), ("Dark", "Temna"),
("Light", "Svetla"), ("Light", "Svetla"),
("Follow System", "Sistemska"), ("Follow System", "Sistemska"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Siguria"), ("Security", "Siguria"),
("Theme", "Theme"), ("Theme", "Theme"),
("Dark Theme", "Theme e errët"), ("Dark Theme", "Theme e errët"),
("Light Theme", ""),
("Dark", "E errët"), ("Dark", "E errët"),
("Light", "Drita"), ("Light", "Drita"),
("Follow System", "Ndiq sistemin"), ("Follow System", "Ndiq sistemin"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Bezbednost"), ("Security", "Bezbednost"),
("Theme", "Tema"), ("Theme", "Tema"),
("Dark Theme", "Tamna tema"), ("Dark Theme", "Tamna tema"),
("Light Theme", ""),
("Dark", "Tamno"), ("Dark", "Tamno"),
("Light", "Svetlo"), ("Light", "Svetlo"),
("Follow System", "Prema sistemu"), ("Follow System", "Prema sistemu"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Säkerhet"), ("Security", "Säkerhet"),
("Theme", "Tema"), ("Theme", "Tema"),
("Dark Theme", "Mörkt tema"), ("Dark Theme", "Mörkt tema"),
("Light Theme", ""),
("Dark", "Mörk"), ("Dark", "Mörk"),
("Light", "Ljus"), ("Light", "Ljus"),
("Follow System", "Följ system"), ("Follow System", "Följ system"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", ""), ("Security", ""),
("Theme", ""), ("Theme", ""),
("Dark Theme", ""), ("Dark Theme", ""),
("Light Theme", ""),
("Dark", ""), ("Dark", ""),
("Light", ""), ("Light", ""),
("Follow System", ""), ("Follow System", ""),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "ความปลอดภัย"), ("Security", "ความปลอดภัย"),
("Theme", "ธีม"), ("Theme", "ธีม"),
("Dark Theme", "ธีมมืด"), ("Dark Theme", "ธีมมืด"),
("Light Theme", ""),
("Dark", "มืด"), ("Dark", "มืด"),
("Light", "สว่าง"), ("Light", "สว่าง"),
("Follow System", "ตามระบบ"), ("Follow System", "ตามระบบ"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Güvenlik"), ("Security", "Güvenlik"),
("Theme", "Tema"), ("Theme", "Tema"),
("Dark Theme", "Koyu Tema"), ("Dark Theme", "Koyu Tema"),
("Light Theme", ""),
("Dark", "Koyu"), ("Dark", "Koyu"),
("Light", "Açık"), ("Light", "Açık"),
("Follow System", "Sisteme Uy"), ("Follow System", "Sisteme Uy"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "安全"), ("Security", "安全"),
("Theme", "主題"), ("Theme", "主題"),
("Dark Theme", "暗黑主題"), ("Dark Theme", "暗黑主題"),
("Light Theme", ""),
("Dark", "黑暗"), ("Dark", "黑暗"),
("Light", "明亮"), ("Light", "明亮"),
("Follow System", "跟隨系統"), ("Follow System", "跟隨系統"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", "Безпека"), ("Security", "Безпека"),
("Theme", "Тема"), ("Theme", "Тема"),
("Dark Theme", "Темна тема"), ("Dark Theme", "Темна тема"),
("Light Theme", ""),
("Dark", "Темна"), ("Dark", "Темна"),
("Light", "Світла"), ("Light", "Світла"),
("Follow System", "Як у системі"), ("Follow System", "Як у системі"),
+1
View File
@@ -349,6 +349,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Security", ""), ("Security", ""),
("Theme", ""), ("Theme", ""),
("Dark Theme", ""), ("Dark Theme", ""),
("Light Theme", ""),
("Dark", ""), ("Dark", ""),
("Light", ""), ("Light", ""),
("Follow System", ""), ("Follow System", ""),