11import 'package:flutter/material.dart' ;
2- import 'package:red_owl/config/shared.dart' show CustomColors ;
2+ import 'package:red_owl/config/shared.dart' show GameColors, HistoryColors ;
33
44final lightTheme = ThemeData (
55 colorScheme: ColorScheme .fromSeed (
@@ -8,17 +8,19 @@ final lightTheme = ThemeData(
88 ),
99 brightness: Brightness .light,
1010 extensions: const < ThemeExtension <dynamic >> [
11- CustomColors (
11+ GameColors (
1212 initial: Color .fromRGBO (211 , 214 , 218 , 1 ),
1313 yellow: Color .fromRGBO (201 , 180 , 88 , 1 ),
1414 green: Color .fromRGBO (106 , 170 , 100 , 1 ),
1515 notInWord: Color .fromRGBO (120 , 124 , 126 , 1 ),
1616 borderInactive: Color .fromRGBO (211 , 214 , 218 , 1 ),
1717 borderActive: Color .fromRGBO (135 , 138 , 140 , 1 ),
18- historyGreen: Color .fromRGBO (72 , 199 , 142 , 1 ),
19- historyRed: Color .fromRGBO (255 , 82 , 113 , 1 ),
20- historyYellow: Color .fromRGBO (255 , 193 , 0 , 1 ),
2118 ),
19+ HistoryColors (
20+ green: Color .fromRGBO (72 , 199 , 142 , 1 ),
21+ red: Color .fromRGBO (255 , 82 , 113 , 1 ),
22+ yellow: Color .fromRGBO (255 , 193 , 0 , 1 ),
23+ )
2224 ],
2325);
2426
@@ -29,16 +31,18 @@ final darkTheme = ThemeData(
2931 ),
3032 brightness: Brightness .dark,
3133 extensions: const < ThemeExtension <dynamic >> [
32- CustomColors (
34+ GameColors (
3335 initial: Color .fromRGBO (129 , 131 , 132 , 1 ),
3436 yellow: Color .fromRGBO (181 , 159 , 59 , 1 ),
3537 green: Color .fromRGBO (83 , 141 , 78 , 1 ),
3638 notInWord: Color .fromRGBO (58 , 58 , 60 , 1 ),
3739 borderInactive: Color .fromRGBO (58 , 58 , 60 , 1 ),
3840 borderActive: Color .fromRGBO (86 , 87 , 88 , 1 ),
39- historyGreen: Color .fromRGBO (0 , 76 , 48 , 1 ),
40- historyRed: Color .fromRGBO (101 , 10 , 30 , 1 ),
41- historyYellow: Color .fromRGBO (180 , 145 , 0 , 1 ),
4241 ),
42+ HistoryColors (
43+ green: Color .fromRGBO (0 , 76 , 48 , 1 ),
44+ red: Color .fromRGBO (101 , 10 , 30 , 1 ),
45+ yellow: Color .fromRGBO (180 , 145 , 0 , 1 ),
46+ )
4347 ],
4448);
0 commit comments