madmicio / LG-WebOS-Remote-Control

Remote Control for LG TV WebOS
393 stars 74 forks source link

Allow 'image' for Sources, or allow custom url for icon property #66

Open jeremysherriff opened 2 years ago

jeremysherriff commented 2 years ago

Currently, the Sources list takes only an 'icon' property to go with the name. The icon can only be a recognised icon source (eg hass:, mdi:, etc).

It would be great if we could reference a url (eg '/local/path/tvfiles/netflix_alt.png') in the same way that channels have the 'image' property. This could either be done using the 'icon' property and some logic to handle the different content type, or by implementing an additional 'image' property for the sources list items.

There would need to be Readme guidance as to best icon sizing (64x64?).

This would be one way to resolve #62 and would provide a way for users to reference any logo, as well as implement alternate colour schemes by editing the original logos saved from web sites.

WallyDW commented 2 years ago

I have installed simpleicons and that have solved that issue for me. https://github.com/vigonotion/hass-simpleicons

You might have to clear browser cache to get this to work, but check first that you can set an icon for a normal device in HA before you try to add them to the remote card.