From 8afca6bcd116876f326764625ec15a1b64b3326e Mon Sep 17 00:00:00 2001 From: Chaphasilor Date: Sat, 9 Nov 2024 17:59:13 +0100 Subject: [PATCH] fix tile color on queue --- lib/components/AlbumScreen/track_list_tile.dart | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/components/AlbumScreen/track_list_tile.dart b/lib/components/AlbumScreen/track_list_tile.dart index 2d8b1ee5..973a2f73 100644 --- a/lib/components/AlbumScreen/track_list_tile.dart +++ b/lib/components/AlbumScreen/track_list_tile.dart @@ -474,17 +474,14 @@ class TrackListItemState extends ConsumerState // 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) @@ -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,