update music buttons

This commit is contained in:
Luke Pulverenti 2015-12-29 21:32:54 -05:00
parent 5a42b6545d
commit 775a423685
4 changed files with 11 additions and 10 deletions

View File

@ -70,14 +70,17 @@
border-radius: 2px;
}
.cardOverlayMoreButton, .cardOverlayPlayButton {
.cardOverlayButtonContainer {
position: absolute;
bottom: 0;
right: 0;
padding: 1em .5em .5em 1em;
}
.cardOverlayMoreButton, .cardOverlayPlayButton {
color: #333;
background-color: rgba(210,210,210,.9);
border-radius: 500px;
margin: 0 .3em .3em 0;
padding: 5px;
width: 36px;
height: 36px;

View File

@ -23,8 +23,8 @@
{ name: 'HeaderFavoriteShows', types: "Series", id: "favoriteShows", shape: getPosterShape(), showTitle: false },
{ name: 'HeaderFavoriteEpisodes', types: "Episode", id: "favoriteEpisode", shape: getThumbShape(), preferThumb: false, showTitle: true, showParentTitle: true },
{ name: 'HeaderFavoriteGames', types: "Game", id: "favoriteGames", shape: getSquareShape(), preferThumb: false, showTitle: true },
{ name: 'HeaderFavoriteArtists', types: "MusicArtist", id: "favoriteArtists", shape: getSquareShape(), preferThumb: false, showTitle: true, overlayText: false, showParentTitle: true, centerText: true, overlayMoreButton: true, defaultAction: 'play' },
{ name: 'HeaderFavoriteAlbums', types: "MusicAlbum", id: "favoriteAlbums", shape: getSquareShape(), preferThumb: false, showTitle: true, overlayText: false, showParentTitle: true, centerText: true, overlayMoreButton: true, defaultAction: 'play' },
{ name: 'HeaderFavoriteArtists', types: "MusicArtist", id: "favoriteArtists", shape: getSquareShape(), preferThumb: false, showTitle: true, overlayText: false, showParentTitle: true, centerText: true, overlayPlayButton: true },
{ name: 'HeaderFavoriteAlbums', types: "MusicAlbum", id: "favoriteAlbums", shape: getSquareShape(), preferThumb: false, showTitle: true, overlayText: false, showParentTitle: true, centerText: true, overlayPlayButton: true },
{ name: 'HeaderFavoriteSongs', types: "Audio", id: "favoriteSongs", shape: getSquareShape(), preferThumb: false, showTitle: true, overlayText: false, showParentTitle: true, centerText: true, overlayMoreButton: true, defaultAction: 'instantmix' }
];
}

View File

@ -2171,10 +2171,10 @@
html += '</a>';
if (options.overlayPlayButton && !item.IsPlaceHolder && (item.LocationType != 'Virtual' || !item.MediaType || item.Type == 'Program')) {
html += '<paper-icon-button icon="play-arrow" class="cardOverlayPlayButton" onclick="return false;"></paper-icon-button>';
html += '<div class="cardOverlayButtonContainer"><paper-icon-button icon="play-arrow" class="cardOverlayPlayButton" onclick="return false;"></paper-icon-button></div>';
}
if (options.overlayMoreButton) {
html += '<paper-icon-button icon="' + AppInfo.moreIcon + '" class="cardOverlayMoreButton" onclick="return false;"></paper-icon-button>';
html += '<div class="cardOverlayButtonContainer"><paper-icon-button icon="' + AppInfo.moreIcon + '" class="cardOverlayMoreButton" onclick="return false;"></paper-icon-button></div>';
}
// cardScalable

View File

@ -39,11 +39,10 @@
showLatestItemsPopup: false,
shape: getSquareShape(),
showTitle: true,
defaultAction: 'play',
showParentTitle: true,
lazy: true,
centerText: true,
overlayMoreButton: true
overlayPlayButton: true
});
ImageLoader.lazyChildren(elem);
@ -174,11 +173,10 @@
shape: getSquareShape(),
showTitle: true,
lazy: true,
defaultAction: 'play',
coverImage: true,
showItemCounts: true,
centerText: true,
overlayMoreButton: true
overlayPlayButton: true
});
ImageLoader.lazyChildren(itemsContainer);