@@ -4,6 +4,8 @@ import 'package:flutter/material.dart';
44import 'package:google_fonts/google_fonts.dart' ;
55
66import 'package:taskwarrior/config/app_settings.dart' ;
7+ import 'package:taskwarrior/config/taskwarriorcolors.dart' ;
8+ import 'package:taskwarrior/config/taskwarriorfonts.dart' ;
79import 'package:taskwarrior/controller/filter_drawer_tour_controller.dart' ;
810import 'package:taskwarrior/drawer/filter_drawer_tour.dart' ;
911import 'package:taskwarrior/model/storage/storage_widget.dart' ;
@@ -30,8 +32,8 @@ class _FilterDrawerState extends State<FilterDrawer> {
3032
3133 bool isSaved = false ;
3234 var tileColor = AppSettings .isDarkMode
33- ? const Color . fromARGB ( 255 , 48 , 46 , 46 )
34- : const Color . fromARGB ( 255 , 220 , 216 , 216 ) ;
35+ ? TaskWarriorColors .ksecondaryBackgroundColor
36+ : TaskWarriorColors .kLightPrimaryBackgroundColor ;
3537 late TutorialCoachMark tutorialCoachMark;
3638
3739 void _initFilterDrawerTour () {
@@ -42,7 +44,7 @@ class _FilterDrawerState extends State<FilterDrawer> {
4244 filterTagKey: filterTagKey,
4345 sortByKey: sortByKey,
4446 ),
45- colorShadow: Colors .black,
47+ colorShadow: TaskWarriorColors .black,
4648 paddingFocus: 10 ,
4749 opacityShadow: 1.00 ,
4850 hideSkip: true ,
@@ -83,8 +85,11 @@ class _FilterDrawerState extends State<FilterDrawer> {
8385 var storageWidget = StorageWidget .of (context);
8486 return Drawer (
8587 backgroundColor: AppSettings .isDarkMode
86- ? Color .fromARGB (255 , 29 , 29 , 29 )
87- : Colors .white,
88+ ? TaskWarriorColors .kprimaryBackgroundColor
89+ : TaskWarriorColors .kLightPrimaryBackgroundColor,
90+ surfaceTintColor: AppSettings .isDarkMode
91+ ? TaskWarriorColors .kprimaryBackgroundColor
92+ : TaskWarriorColors .kLightPrimaryBackgroundColor,
8893 child: SafeArea (
8994 child: Padding (
9095 padding: const EdgeInsets .all (8 ),
@@ -103,11 +108,11 @@ class _FilterDrawerState extends State<FilterDrawer> {
103108 child: Text (
104109 'Apply Filters' ,
105110 style: GoogleFonts .poppins (
106- fontWeight: FontWeight .bold,
111+ fontWeight: TaskWarriorFonts .bold,
107112 color: (AppSettings .isDarkMode
108- ? Colors .white
109- : Color . fromARGB ( 255 , 48 , 46 , 46 ) ),
110- fontSize: 25 ),
113+ ? TaskWarriorColors .kprimaryTextColor
114+ : TaskWarriorColors .kLightPrimaryTextColor ),
115+ fontSize: TaskWarriorFonts .fontSizeExtraLarge ),
111116 ),
112117 ),
113118 ),
@@ -120,7 +125,7 @@ class _FilterDrawerState extends State<FilterDrawer> {
120125 decoration: BoxDecoration (
121126 color: tileColor,
122127 borderRadius: BorderRadius .circular (8 ),
123- border: Border .all (color: Colors .grey.shade300 ),
128+ border: Border .all (color: TaskWarriorColors .borderColor ),
124129 ),
125130 child: ListTile (
126131 contentPadding: EdgeInsets .only (
@@ -134,31 +139,31 @@ class _FilterDrawerState extends State<FilterDrawer> {
134139 TextSpan (
135140 text: 'Status : ' ,
136141 style: GoogleFonts .poppins (
137- fontWeight: FontWeight .bold,
138- fontSize: 15 ,
142+ fontWeight: TaskWarriorFonts .bold,
143+ fontSize: TaskWarriorFonts .fontSizeMedium ,
139144 color: AppSettings .isDarkMode
140- ? Colors .white
141- : Colors .black,
145+ ? TaskWarriorColors .white
146+ : TaskWarriorColors .black,
142147 ),
143148 ),
144149 TextSpan (
145150 text: widget.filters.pendingFilter
146151 ? 'pending'
147152 : 'completed' ,
148153 style: GoogleFonts .poppins (
149- fontSize: 15 ,
154+ fontSize: TaskWarriorFonts .fontSizeMedium ,
150155 color: AppSettings .isDarkMode
151- ? Colors .white
152- : Colors .black,
156+ ? TaskWarriorColors .white
157+ : TaskWarriorColors .black,
153158 ),
154159 ),
155160 ],
156161 ),
157162 ),
158163 onTap: widget.filters.togglePendingFilter,
159164 textColor: AppSettings .isDarkMode
160- ? Colors .white
161- : Color . fromARGB ( 255 , 48 , 46 , 46 ) ,
165+ ? TaskWarriorColors .kprimaryTextColor
166+ : TaskWarriorColors .kLightSecondaryTextColor ,
162167 ),
163168 ),
164169 const Divider (
@@ -171,7 +176,7 @@ class _FilterDrawerState extends State<FilterDrawer> {
171176 decoration: BoxDecoration (
172177 color: tileColor,
173178 borderRadius: BorderRadius .circular (8 ),
174- border: Border .all (color: Colors .grey.shade300 ),
179+ border: Border .all (color: TaskWarriorColors .borderColor ),
175180 ),
176181 child: ProjectsColumn (
177182 widget.filters.projects,
@@ -189,7 +194,7 @@ class _FilterDrawerState extends State<FilterDrawer> {
189194 decoration: BoxDecoration (
190195 color: tileColor,
191196 borderRadius: BorderRadius .circular (8 ),
192- border: Border .all (color: Colors .grey.shade300 ),
197+ border: Border .all (color: TaskWarriorColors .borderColor ),
193198 ),
194199 child: Column (
195200 mainAxisAlignment: MainAxisAlignment .center,
@@ -203,10 +208,10 @@ class _FilterDrawerState extends State<FilterDrawer> {
203208 'Filter Tag By:' ,
204209 style: GoogleFonts .poppins (
205210 color: (AppSettings .isDarkMode
206- ? Colors .white
207- : Color . fromARGB ( 255 , 48 , 46 , 46 ) ),
211+ ? TaskWarriorColors .kprimaryTextColor
212+ : TaskWarriorColors .kLightSecondaryTextColor ),
208213 //
209- fontSize: 18 ),
214+ fontSize: TaskWarriorFonts .fontSizeLarge ),
210215 //textAlign: TextAlign.right,
211216 ),
212217 ),
@@ -233,7 +238,7 @@ class _FilterDrawerState extends State<FilterDrawer> {
233238 decoration: BoxDecoration (
234239 color: tileColor,
235240 borderRadius: BorderRadius .circular (8 ),
236- border: Border .all (color: Colors .grey.shade300 ),
241+ border: Border .all (color: TaskWarriorColors .borderColor ),
237242 ),
238243 //height: 30,
239244 child: Column (
@@ -247,9 +252,9 @@ class _FilterDrawerState extends State<FilterDrawer> {
247252 'Sort By' ,
248253 style: GoogleFonts .poppins (
249254 color: (AppSettings .isDarkMode
250- ? Colors .white
251- : Color . fromARGB ( 255 , 48 , 46 , 46 ) ),
252- fontSize: 18 ),
255+ ? TaskWarriorColors .kprimaryTextColor
256+ : TaskWarriorColors .kLightPrimaryTextColor ),
257+ fontSize: TaskWarriorFonts .fontSizeLarge ),
253258 // textAlign: TextAlign.right,
254259 ),
255260 ),
@@ -292,11 +297,12 @@ class _FilterDrawerState extends State<FilterDrawer> {
292297 },
293298 labelStyle: GoogleFonts .poppins (
294299 color: AppSettings .isDarkMode
295- ? Colors .black
296- : Colors .white),
300+ ? TaskWarriorColors .black
301+ : TaskWarriorColors .white),
297302 backgroundColor: AppSettings .isDarkMode
298- ? Color .fromARGB (255 , 220 , 216 , 216 )
299- : Color .fromARGB (255 , 48 , 46 , 46 ),
303+ ? TaskWarriorColors
304+ .kLightSecondaryBackgroundColor
305+ : TaskWarriorColors .ksecondaryBackgroundColor,
300306 ),
301307 ],
302308 ),
@@ -307,11 +313,10 @@ class _FilterDrawerState extends State<FilterDrawer> {
307313 Container (
308314 width: 200 ,
309315 decoration: BoxDecoration (
310- borderRadius: BorderRadius .circular (10 ),
311- color: AppSettings .isDarkMode
312- ? Color .fromARGB (255 , 220 , 216 , 216 )
313- : Color .fromARGB (255 , 48 , 46 , 46 ),
314- ),
316+ borderRadius: BorderRadius .circular (10 ),
317+ color: AppSettings .isDarkMode
318+ ? TaskWarriorColors .kLightSecondaryBackgroundColor
319+ : TaskWarriorColors .ksecondaryBackgroundColor),
315320 child: TextButton (
316321 onPressed: () {
317322 if (storageWidget.selectedSort.endsWith ('+' ) ||
@@ -324,10 +329,10 @@ class _FilterDrawerState extends State<FilterDrawer> {
324329 child: Text (
325330 'Reset Sort' ,
326331 style: GoogleFonts .poppins (
327- fontSize: 15 ,
332+ fontSize: TaskWarriorFonts .fontSizeMedium ,
328333 color: AppSettings .isDarkMode
329- ? Color . fromARGB ( 255 , 48 , 46 , 46 )
330- : Colors .white ),
334+ ? TaskWarriorColors .kLightSecondaryTextColor
335+ : TaskWarriorColors .ksecondaryTextColor ),
331336 )),
332337 ),
333338 const Divider (
0 commit comments