1
0
mirror of https://github.com/go-vikunja/app synced 2024-12-03 15:52:41 +00:00

fix: make due date on kanban readable in light mode

This commit is contained in:
kolaente 2024-09-17 13:59:20 +02:00
parent 7df3e0321d
commit be2a14678f
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -116,13 +116,27 @@ class _BucketTaskCardState extends State<BucketTaskCard>
child: Chip(
avatar: Icon(
Icons.calendar_month,
color: pastDue ? Colors.red : null,
color: pastDue
? Colors.red
: (theme.brightness == Brightness.dark
? Colors.grey[400]
: Colors.grey[600]),
),
label: Text(durationToHumanReadable(duration)),
labelStyle: (theme.textTheme.labelLarge ?? TextStyle()).copyWith(
color: pastDue ? Colors.red : null,
color: pastDue
? Colors.red
: (theme.brightness == Brightness.dark
? Colors.grey[400]
: Colors.grey[600]),
),
backgroundColor: theme.brightness == Brightness.dark
? Colors.grey[800]
: Colors.grey[200],
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(8.0),
side: BorderSide(style: BorderStyle.none),
),
backgroundColor: pastDue ? Colors.red.withAlpha(20) : null,
),
),
));