roku-card icon indicating copy to clipboard operation
roku-card copied to clipboard

Add icon to button options

Open spripe opened this issue 4 years ago • 2 comments

Is your feature request related to a problem? Please describe. Would like to have the option to add a icon to a button

Describe the solution you'd like Add the same possibility as app button to a ordinary button

Describe alternatives you've considered N/A

Additional context N/A

spripe avatar Oct 01 '20 20:10 spripe

Do you mean the core buttonset (left, right, up, down, etc)? If so, what's the point using this card. You might as well just use builtin button-card , and set each button icon + action. Easy,

DrHoneyBear avatar Nov 27 '20 23:11 DrHoneyBear

You could manually download roku-card.js and see where it defines a button (There's a "renderButton" function for each one) and change the icon for the one you want. For example, I changed power button icon to a customized one:

      <div class="row">
        ${this._config.tv||this._config.power&&this._config.power.show?this._renderButton("power","mdi:monitor-speaker","Power"):""}
      </div>

you can see the icon I picked as "mdi:monitor-speaker"

Then you reload hass resources manually (https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins) and you're done

josrafafonlo avatar Nov 09 '21 01:11 josrafafonlo