Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add icon to button options #51

Open
spripe opened this issue Oct 1, 2020 · 2 comments
Open

Add icon to button options #51

spripe opened this issue Oct 1, 2020 · 2 comments

Comments

@spripe
Copy link

spripe commented Oct 1, 2020

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

@DrHoneyBear
Copy link

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,

@josrafafonlo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants