update icon

This commit is contained in:
grafixeyehero 2019-05-16 04:33:57 +03:00
parent 71d59feb76
commit 93be06bdd4
4 changed files with 30 additions and 11 deletions

View File

@ -1565,12 +1565,24 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'focusMana
if (collectionType === 'livetv') {
return '<i class="cardImageIcon md-icon">&#xE1B2;</i>';
}
if (collectionType === 'movies') {
return '<i class="cardImageIcon md-icon">&#xe04a;</i>';
}
if (collectionType === 'tvshows') {
return '<i class="cardImageIcon md-icon">&#xe333;</i>';
}
if (collectionType === 'homevideos' || collectionType === 'photos') {
return '<i class="cardImageIcon md-icon">&#xE412;</i>';
return '<i class="cardImageIcon md-icon">&#xe071;</i>';
}
if (collectionType === 'music') {
return '<i class="cardImageIcon md-icon">&#xE310;</i>';
}
if (collectionType === 'musicvideos') {
return '<i class="cardImageIcon md-icon">&#xe063;</i>';
}
if (collectionType === 'books') {
return '<i class="cardImageIcon md-icon">&#xe02f;</i>';
}
if (item.Type === 'MusicAlbum') {
return '<i class="cardImageIcon md-icon">&#xE019;</i>';
}

View File

@ -198,37 +198,37 @@ define(['connectionManager', 'cardBuilder', 'appSettings', 'dom', 'apphost', 'la
var icon;
switch (item.CollectionType) {
case "movies":
icon = "local_movies";
icon = "video_library";
break;
case "music":
icon = "library_music";
break;
case "photos":
icon = "photo";
icon = "photo_library";
break;
case "livetv":
icon = "live_tv";
break;
case "tvshows":
icon = "live_tv";
icon = "tv";
break;
case "trailers":
icon = "local_movies";
break;
case "homevideos":
icon = "video_library";
icon = "video_label";
break;
case "musicvideos":
icon = "video_library";
icon = "music_video";
break;
case "books":
icon = "folder";
icon = "library_books";
break;
case "channels":
icon = "folder";
icon = "videocam";
break;
case "playlists":
icon = "folder";
icon = "view_list";
break;
default:
icon = "folder";

View File

@ -12,6 +12,7 @@
letter-spacing: normal;
text-transform: none;
display: inline-block;
margin-right: 4px;
white-space: nowrap;
word-wrap: normal;
direction: ltr;

View File

@ -323,7 +323,7 @@ define(["dom", "layoutManager", "inputManager", "connectionManager", "events", "
name: globalize.translate("TabLiveTV"),
href: "livetvstatus.html",
pageIds: ["liveTvStatusPage", "liveTvTunerPage"],
icon: "tv"
icon: "live_tv"
});
links.push({
name: globalize.translate("DVR"),
@ -538,9 +538,12 @@ define(["dom", "layoutManager", "inputManager", "connectionManager", "events", "
else if ("photos" === i.CollectionType) {
icon = "photo_library";
}
else if ("music" === i.CollectionType || "musicvideos" === i.CollectionType) {
else if ("music" === i.CollectionType) {
icon = "library_music";
}
else if ("musicvideos" === i.CollectionType) {
icon = "music_video";
}
else if ("books" === i.CollectionType) {
icon = "library_books";
}
@ -550,6 +553,9 @@ define(["dom", "layoutManager", "inputManager", "connectionManager", "events", "
else if ("movies" === i.CollectionType) {
icon = "video_library";
}
else if ("homevideos" === i.CollectionType) {
icon = "video_label";
}
else if ("channels" === i.CollectionType || "Channel" === i.Type) {
icon = "videocam";
}