sbryfcz / harmony-card

A Home Assistant Lovelace Care for Harmony Integration
MIT License
104 stars 12 forks source link

Are colors really changeable? #22

Closed askusbloodfist closed 3 years ago

askusbloodfist commented 4 years ago

I have the following code you Y And everythign does what i want exept the color. Is the coloring realy working on xayb=? I myself cant cange the colors. managed to do any other option.

  'y':
    command: Home
    device: Apple tv
    hide: false
    icon: 'mdi:monitor'
    color: '#fffffff'
Krocko commented 4 years ago

There is one 'f' to much for the color: Try with #ffffff

askusbloodfist commented 4 years ago

Yeh just a typo by me, Im doing the following. but ABXY are always set colors no matter what i do ` activities:

`

askusbloodfist commented 4 years ago

Sins i could not se what might be right infront of me or if the card wont allow you to change the colors of the ABYX Buttons i changed code in the JS files in the js and gz

\www\community\harmony-card\harmony-card.js .. harmony-card.js.gz

The Rows i changed

${this.renderIconButton(buttonConfig['a'], currentDevice, "grid-column: 4; grid-row: 2; color: #ffffff;")} ${this.renderIconButton(buttonConfig['b'], currentDevice, "grid-column: 5; grid-row: 2; color: #ffffff;")} ${this.renderIconButton(buttonConfig['x'], currentDevice, "grid-column: 6; grid-row: 2; color: #ffffff;")}
${this.renderIconButton(buttonConfig['y'], currentDevice, "grid-column: 7; grid-row: 2; color: #ffffff;")} `

ffffff is what u can change to whatever colors you are looking for. Glhf. Hope for updates that makes this easyer or changeable @ all.

You can allso remove the color part to have it change acording to your interface colors. untill the creator makes the changes needed to make it change by configuring the card inside the ui.

sbryfcz commented 3 years ago

Pull requests are always considered.

sbryfcz commented 3 years ago

I didnt have any issues changing the color of the 'y' button with configuration:

buttons:
  y:
    color: #ffffff