Skip to content

Commit

Permalink
remove mini visualizer, tint title
Browse files Browse the repository at this point in the history
- the visualizer doesn't fit in well and isn't needed to mark the current track anymore
- the fully-saturated accent color looked a bit strange
  • Loading branch information
Chaphasilor committed Oct 28, 2024
1 parent 7dfac7b commit dfddc49
Showing 1 changed file with 16 additions and 31 deletions.
47 changes: 16 additions & 31 deletions lib/components/AlbumScreen/track_list_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -599,10 +599,18 @@ class ThemedTrackListTile extends ConsumerWidget {
.bodyLarge
?.copyWith(
color: isCurrentTrack
? ref
? Color.alphaBlend(
(ref
.watch(colorThemeNullableProvider)
.value
?.secondary
?.secondary
.withOpacity(0.5)) ??
Colors.transparent,
Theme.of(context)
.textTheme
.bodyLarge
?.color ??
Colors.black)
: Theme.of(context).textTheme.bodyLarge?.color,
),
)),
Expand Down Expand Up @@ -704,35 +712,12 @@ class TrackListItemTile extends StatelessWidget {
))),
),
if (showCover)
Stack(
children: [
AlbumImage(
item: baseItem,
borderRadius: isCurrentTrack
? BorderRadius.zero
: BorderRadius.circular(8.0),
themeCallback: themeCallback,
),
if (isCurrentTrack)
SizedBox.square(
dimension: defaultTileHeight,
child: Container(
decoration: BoxDecoration(
borderRadius: isCurrentTrack
? BorderRadius.zero
: BorderRadius.circular(8.0),
color: Theme.of(context).brightness == Brightness.dark
? Colors.black.withOpacity(0.35)
: Colors.white.withOpacity(0.35),
),
// color: Theme.of(context).colorScheme.primary.withOpacity(0.35),
child: MiniMusicVisualizer(
color: Theme.of(context).colorScheme.secondary,
animate: true,
),
),
),
],
AlbumImage(
item: baseItem,
borderRadius: isCurrentTrack
? BorderRadius.zero
: BorderRadius.circular(8.0),
themeCallback: themeCallback,
),
],
),
Expand Down

0 comments on commit dfddc49

Please sign in to comment.