Skip to content

Commit 66eac65

Browse files
committed
Update mini cover logic; add tinted color utility
Refined mini player cover image loading in NowPlayingFragment to use Glide only when a valid image path is present. Added GetTintedBackgroundColor method to ImageFilterUtils for alpha-adjusted color handling.
1 parent 0ae43b0 commit 66eac65

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Dimmer/Dimmer.Droid/ViewsAndPages/NativeViews/NowPlayingFragment.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,7 @@ private void UpdateSongUI(SongModelView? song)
10021002
{
10031003
_miniCover.SetImageWithGlide(song.CoverImagePath);
10041004

1005+
10051006
}
10061007
else
10071008
{

Dimmer/Dimmer/Utilities/AppUtils.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ private static double Linearize(double value)
423423

424424
public static Color GetTintedBackgroundColor(Color color, float alpha = 0.1f)
425425
{
426+
426427
return color?.MultiplyAlpha(alpha) ?? Colors.Transparent;
427428
}
428429
/// <summary>

0 commit comments

Comments
 (0)