1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

changed getRandomMetroColor to getMetroColor

This commit is contained in:
Techywarrior 2013-03-31 20:45:32 -07:00
parent d27b583884
commit f5550ea802
5 changed files with 22 additions and 7 deletions

View file

@ -151,7 +151,7 @@
if (url) {
var style = useBackgroundColor ? "background-color:" + Dashboard.getRandomMetroColor() + ";" : "";
var style = useBackgroundColor ? "background-color:" + Dashboard.getMetroColor(item.Id) + ";" : "";
html += "<img class='itemDetailImage' src='" + url + "' style='" + style + "' />";
}
@ -700,7 +700,9 @@
html += '<img src="' + imgUrl + '" />';
} else {
html += '<img src="css/images/items/list/person.png" style="width:185px;"/>';
var style = "background-color:" + Dashboard.getMetroColor(cast.Name) + ";";
html += '<img src="css/images/items/list/person.png" style="max-width:185px; '+style+'"/>';
}
html += '<div class="posterViewItemText posterViewItemPrimaryText">' + cast.Name + '</div>';