Skip to content

Commit

Permalink
fix: app bar colors for reports_view.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
SGI-CAPP-AT2 committed Dec 24, 2024
1 parent 50511f3 commit 3eb221f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/app/modules/home/views/tas_list_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class TaskListItem extends StatelessWidget {

@override
Widget build(BuildContext context) {
// ignore: unused_element
TaskwarriorColorTheme tColors = Theme.of(context).extension<TaskwarriorColorTheme>()!;
// ignore: unused_element
void saveChanges() async {
var now = DateTime.now().toUtc();
modify.save(
Expand Down
8 changes: 3 additions & 5 deletions lib/app/modules/reports/views/reports_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,12 @@ class ReportsView extends GetView<ReportsController> {
preferredSize: Size.fromHeight(height * 0.1),
child: TabBar(
controller: controller.tabController,
labelColor: TaskWarriorColors.white,
labelStyle: GoogleFonts.poppins(
fontWeight: TaskWarriorFonts.medium,
fontSize: TaskWarriorFonts.fontSizeSmall,
),
unselectedLabelStyle: GoogleFonts.poppins(
fontWeight: TaskWarriorFonts.light,
color: TaskWarriorColors.appBarUnSelectedIconsColorForReports
),
indicatorColor: tColors.purpleShade,
labelColor: TaskWarriorColors.white,
onTap: (value) {
controller.selectedIndex.value = value;
},
Expand Down
5 changes: 5 additions & 0 deletions lib/app/utils/constants/taskwarrior_colors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ class TaskWarriorColors {
static Color deepPurpleAccent = Colors.deepPurpleAccent;
static Color deepPurple = Colors.deepPurple;

// colors irrespective of theme
static Color appBarColor = const Color(0xFF000000);
static Color appBarTextColor = white;
static Color appBarUnSelectedIconsColorForReports = const Color(0xFF48454E);

// Dark Theme Color Palette
static Color kprimaryBackgroundColor = Palette.kToDark.shade200;
static Color ksecondaryBackgroundColor =
Expand Down

0 comments on commit 3eb221f

Please sign in to comment.