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:
parent
7df3e0321d
commit
be2a14678f
@ -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,
|
||||
),
|
||||
),
|
||||
));
|
||||
|
Loading…
x
Reference in New Issue
Block a user