diff --git a/src/renderer/views/components/mediaitem-artwork.ejs b/src/renderer/views/components/mediaitem-artwork.ejs index 7e169943..79ffa4f9 100644 --- a/src/renderer/views/components/mediaitem-artwork.ejs +++ b/src/renderer/views/components/mediaitem-artwork.ejs @@ -3,6 +3,7 @@ v-observe-visibility="{callback: visibilityChanged}">
@@ -22,6 +23,10 @@ type: [String, Number], required: false }, + bgcolor: { + type: String, + default: '' + }, url: { type: String, default: '' diff --git a/src/renderer/views/components/mediaitem-list-item.ejs b/src/renderer/views/components/mediaitem-list-item.ejs index b691ee69..b99f68e0 100644 --- a/src/renderer/views/components/mediaitem-list-item.ejs +++ b/src/renderer/views/components/mediaitem-list-item.ejs @@ -28,6 +28,7 @@
@@ -102,6 +103,10 @@ this.getClasses() }, methods: { + getBgColor() { + let color = `#${(this.item.attributes.artwork != null && this.item.attributes.artwork.bgColor != null) ? (this.item.attributes.artwork.bgColor) : ``}` + return color + }, async checkLibrary() { if(this.addedToLibrary) {return this.addedToLibrary} if(this.item.type.includes("library-playlists") || this.item.type.includes("station")) { diff --git a/src/renderer/views/components/mediaitem-square.ejs b/src/renderer/views/components/mediaitem-square.ejs index 67fae157..0a2cca53 100644 --- a/src/renderer/views/components/mediaitem-square.ejs +++ b/src/renderer/views/components/mediaitem-square.ejs @@ -11,6 +11,7 @@ :video="(item.attributes != null && item.attributes.editorialVideo != null) ? (item.attributes.editorialVideo.motionDetailSquare ? item.attributes.editorialVideo.motionDetailSquare.video : (item.attributes.editorialVideo.motionSquareVideo1x1 ? item.attributes.editorialVideo.motionSquareVideo1x1.video : '')) : '' " :size="size" shadow="subtle" + :bgcolor="getBgColor()" :type="item.type">