mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-03 16:03:06 +00:00
Set different text color to already played tracks
This commit is contained in:
@@ -55,6 +55,12 @@ public class PlayerSongQueueAdapter extends RecyclerView.Adapter<PlayerSongQueue
|
|||||||
.from(context, song.getPrimary(), song.getBlurHash(), CustomGlideRequest.PRIMARY, CustomGlideRequest.TOP_QUALITY, CustomGlideRequest.SONG_PIC)
|
.from(context, song.getPrimary(), song.getBlurHash(), CustomGlideRequest.PRIMARY, CustomGlideRequest.TOP_QUALITY, CustomGlideRequest.SONG_PIC)
|
||||||
.build()
|
.build()
|
||||||
.into(holder.cover);
|
.into(holder.cover);
|
||||||
|
|
||||||
|
if(position < MusicPlayerRemote.getPosition()) {
|
||||||
|
holder.songTitle.setTextColor(context.getResources().getColor(R.color.songToPlayTextColor, null));
|
||||||
|
holder.songArtist.setTextColor(context.getResources().getColor(R.color.songToPlayTextColor, null));
|
||||||
|
holder.songDuration.setTextColor(context.getResources().getColor(R.color.songToPlayTextColor, null));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -13,6 +13,8 @@
|
|||||||
<color name="titleTextColor">#DADADA</color>
|
<color name="titleTextColor">#DADADA</color>
|
||||||
<color name="subtitleTextColor">#9B9B9B</color>
|
<color name="subtitleTextColor">#9B9B9B</color>
|
||||||
|
|
||||||
|
<color name="songToPlayTextColor">#949494</color>
|
||||||
|
|
||||||
<color name="suggestionTextColor">#DADADA</color>
|
<color name="suggestionTextColor">#DADADA</color>
|
||||||
<color name="suggestionIconColor">#DADADA</color>
|
<color name="suggestionIconColor">#DADADA</color>
|
||||||
<color name="darkIconColor">#CFCFCF</color>
|
<color name="darkIconColor">#CFCFCF</color>
|
||||||
|
|||||||
@@ -16,6 +16,8 @@
|
|||||||
<color name="titleTextColor">#252525</color>
|
<color name="titleTextColor">#252525</color>
|
||||||
<color name="subtitleTextColor">#646464</color>
|
<color name="subtitleTextColor">#646464</color>
|
||||||
|
|
||||||
|
<color name="songToPlayTextColor">#ABABAB</color>
|
||||||
|
|
||||||
<color name="suggestionTextColor">#252525</color>
|
<color name="suggestionTextColor">#252525</color>
|
||||||
<color name="suggestionIconColor">#252525</color>
|
<color name="suggestionIconColor">#252525</color>
|
||||||
<color name="darkIconColor">#303030</color>
|
<color name="darkIconColor">#303030</color>
|
||||||
|
|||||||
Reference in New Issue
Block a user