Skip to content

Commit

Permalink
fix tile color on queue
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaphasilor committed Nov 9, 2024
1 parent 05655ad commit 8afca6b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/components/AlbumScreen/track_list_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -474,17 +474,14 @@ class TrackListItemState extends ConsumerState<TrackListItem>
// colorScheme: imageTheme,
// brightness: Theme.of(context).brightness,
colorScheme: imageTheme.copyWith(
surfaceContainer: isCurrentlyPlaying
? ref
surfaceContainer: ref
.watch(colorThemeProvider)
.primary
.withOpacity(
Theme.of(context).brightness ==
Brightness.dark
? 0.35
: 0.3)
// : Theme.of(context).colorScheme.surfaceContainer,
: Colors.transparent,
: 0.3)
),
textTheme: Theme.of(context).textTheme.copyWith(
bodyLarge: Theme.of(context)
Expand Down Expand Up @@ -631,7 +628,9 @@ class TrackListItemTile extends StatelessWidget {
"${durationLabelFullHours > 0 ? "$durationLabelFullHours ${AppLocalizations.of(context)!.hours} " : ""}${durationLabelFullMinutes > 0 ? "$durationLabelFullMinutes ${AppLocalizations.of(context)!.minutes} " : ""}$durationLabelSeconds ${AppLocalizations.of(context)!.seconds}";

return ListTileTheme(
tileColor: Theme.of(context).colorScheme.surfaceContainer,
tileColor: isCurrentTrack
? Theme.of(context).colorScheme.surfaceContainer
: Colors.transparent,
child: ListTile(
visualDensity: const VisualDensity(
horizontal: 0.0,
Expand Down

0 comments on commit 8afca6b

Please sign in to comment.