@@ -13,12 +13,50 @@ class ApplicationController extends GetxController {
1313 super .onInit ();
1414 }
1515
16+ ThemeData get currentThemeData {
17+ switch (themeText.value) {
18+ case "light" :
19+ return ThemeData .light (useMaterial3: true );
20+ case "dark" :
21+ return ThemeData .dark (useMaterial3: true );
22+ case "black" :
23+ return ThemeData .dark (
24+ useMaterial3: true ,
25+ ).copyWith (
26+ scaffoldBackgroundColor: Colors .black,
27+ canvasColor: Colors .black,
28+ cardColor: Colors .black,
29+ dialogBackgroundColor: Colors .black,
30+ primaryColor: Colors .black,
31+ hintColor: Colors .black,
32+ primaryColorDark: Colors .black,
33+ primaryColorLight: Colors .black,
34+ colorScheme: const ColorScheme .dark (
35+ primary: Colors .white,
36+ onBackground: Colors .white,
37+ onSecondary: Colors .white,
38+ onSurface: Colors .white,
39+ secondary: Colors .black,
40+ surface: Colors .black,
41+ background: Colors .black,
42+ onPrimary: Colors .black,
43+ primaryContainer: Color .fromARGB (255 , 31 , 31 , 31 ),
44+ surfaceTint: Colors .black,
45+ ),
46+ );
47+ default :
48+ return ThemeData .light (useMaterial3: true );
49+ }
50+ }
51+
1652 ThemeMode get theme {
1753 switch (themeText.value) {
1854 case "light" :
1955 return ThemeMode .light;
2056 case "dark" :
2157 return ThemeMode .dark;
58+ case "black" :
59+ return ThemeMode .light;
2260 default :
2361 return ThemeMode .system;
2462 }
0 commit comments