Update color count in color extraction (#5270)
* Update color count in color extraction * add the images
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
@@ -34,6 +34,7 @@ export const createMediaPlayerEntities = () => [
|
|||||||
media_content_type: "movie",
|
media_content_type: "movie",
|
||||||
media_title: "Epic sax guy 10 hours",
|
media_title: "Epic sax guy 10 hours",
|
||||||
app_name: "YouTube",
|
app_name: "YouTube",
|
||||||
|
entity_picture: "/images/frenck.jpg",
|
||||||
supported_features: 33,
|
supported_features: 33,
|
||||||
}),
|
}),
|
||||||
getEntity("media_player", "living_room", "playing", {
|
getEntity("media_player", "living_room", "playing", {
|
||||||
@@ -42,6 +43,7 @@ export const createMediaPlayerEntities = () => [
|
|||||||
media_title: "Chapter 1",
|
media_title: "Chapter 1",
|
||||||
media_series_title: "House of Cards",
|
media_series_title: "House of Cards",
|
||||||
app_name: "Netflix",
|
app_name: "Netflix",
|
||||||
|
entity_picture: "/images/netflix.jpg",
|
||||||
supported_features: 1,
|
supported_features: 1,
|
||||||
}),
|
}),
|
||||||
getEntity("media_player", "sonos_idle", "idle", {
|
getEntity("media_player", "sonos_idle", "idle", {
|
||||||
|
|||||||
@@ -694,8 +694,10 @@ export class HuiMediaControlCard extends LitElement implements LovelaceCard {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Vibrant.from(this._image)
|
new Vibrant(this._image, {
|
||||||
.useGenerator(customGenerator)
|
colorCount: 16,
|
||||||
|
generator: customGenerator,
|
||||||
|
})
|
||||||
.getPalette()
|
.getPalette()
|
||||||
.then(([foreground, background]: [string, string]) => {
|
.then(([foreground, background]: [string, string]) => {
|
||||||
this._backgroundColor = background;
|
this._backgroundColor = background;
|
||||||
|
|||||||
Reference in New Issue
Block a user