diff --git a/dashboard-ui/scripts/Itemdetailpage.js b/dashboard-ui/scripts/Itemdetailpage.js
index 27b88d258f..f882b73080 100644
--- a/dashboard-ui/scripts/Itemdetailpage.js
+++ b/dashboard-ui/scripts/Itemdetailpage.js
@@ -151,7 +151,7 @@
if (url) {
- var style = useBackgroundColor ? "background-color:" + Dashboard.getRandomMetroColor() + ";" : "";
+ var style = useBackgroundColor ? "background-color:" + Dashboard.getMetroColor(item.Id) + ";" : "";
html += "";
}
@@ -700,7 +700,9 @@
html += '
';
} else {
- html += '
';
+ var style = "background-color:" + Dashboard.getMetroColor(cast.Name) + ";";
+
+ html += '
';
}
html += '