Skip to content

Commit

Permalink
improve title contrast in dark mode, fix opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaphasilor committed Nov 9, 2024
1 parent 67fc3d2 commit b75f869
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions lib/components/AlbumScreen/track_list_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ class TrackListItemState extends ConsumerState<TrackListItem>
snapshot.data?.extras?["itemJson"]["Id"] == widget.baseItem.id;

return Opacity(
opacity: playable ? (isCurrentlyPlaying ? 0.8 : 1.0) : 0.5,
opacity: playable ? 1.0 : 0.5,
child: Card(
color: Colors.transparent,
elevation: 0,
Expand Down Expand Up @@ -489,13 +489,23 @@ class TrackListItemState extends ConsumerState<TrackListItem>
.watch(
colorThemeProvider)
.secondary
.withOpacity(0.3)) ??
.withOpacity(Theme.of(
context)
.brightness ==
Brightness
.light
? 0.5
: 0.1)) ??
Colors.transparent,
Theme.of(context)
.textTheme
.bodyLarge
?.color ??
Colors.black)
(Theme.of(context)
.brightness ==
Brightness.light
? Colors.black
: Colors.white))
: Theme.of(context)
.textTheme
.bodyLarge
Expand Down

0 comments on commit b75f869

Please sign in to comment.