Improved alignments & Add classic player'
This commit is contained in:
parent
21d59f0274
commit
c3c5f7e829
14 changed files with 217 additions and 190 deletions
|
@ -263,7 +263,7 @@ class AlbumDetailsActivity : AbsSlidingMusicPanelActivity(), AlbumDetailsView, C
|
|||
.dontTransform()
|
||||
.into(object : RetroMusicColoredTarget(image) {
|
||||
override fun onColorReady(colors: MediaNotificationProcessor) {
|
||||
setColors(colors.backgroundColor)
|
||||
setColors(colors.primaryTextColor)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -348,8 +348,7 @@ class AlbumDetailsActivity : AbsSlidingMusicPanelActivity(), AlbumDetailsView, C
|
|||
R.id.action_sort_order_title -> sortOrder = AlbumSongSortOrder.SONG_A_Z
|
||||
R.id.action_sort_order_title_desc -> sortOrder = AlbumSongSortOrder.SONG_Z_A
|
||||
R.id.action_sort_order_track_list -> sortOrder = AlbumSongSortOrder.SONG_TRACK_LIST
|
||||
R.id.action_sort_order_artist_song_duration -> sortOrder =
|
||||
AlbumSongSortOrder.SONG_DURATION
|
||||
R.id.action_sort_order_artist_song_duration -> sortOrder = AlbumSongSortOrder.SONG_DURATION
|
||||
}
|
||||
if (sortOrder != null) {
|
||||
item.isChecked = true
|
||||
|
|
|
@ -26,5 +26,5 @@ enum class NowPlayingScreen constructor(
|
|||
PLAIN(R.string.plain, R.drawable.np_plain, 3),
|
||||
SIMPLE(R.string.simple, R.drawable.np_simple, 8),
|
||||
TINY(R.string.tiny, R.drawable.np_tiny, 7),
|
||||
CLASSIC(R.string.classic, R.drawable.np_tiny, 16),
|
||||
CLASSIC(R.string.classic, R.drawable.np_classic, 16),
|
||||
}
|
||||
|
|
|
@ -476,6 +476,16 @@ public class MediaNotificationProcessor {
|
|||
return backgroundColor;
|
||||
}
|
||||
|
||||
public int getMightyColor() {
|
||||
if (isColorLight(backgroundColor)) {
|
||||
return primaryTextColor;
|
||||
} else if (isColorLight(primaryTextColor)) {
|
||||
return secondaryTextColor;
|
||||
} else {
|
||||
return backgroundColor;
|
||||
}
|
||||
}
|
||||
|
||||
public interface OnPaletteLoadedListener {
|
||||
void onPaletteLoaded(MediaNotificationProcessor mediaNotificationProcessor);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue