Skip to content

Invert icon color/state #73

Answered by jcwillox
Mithrox asked this question in Q&A
Dec 30, 2021 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

You can use state_styles to achive this, this will invert the active/inactive colors

state_styles:
  "off":
    button:
      color: var(--paper-item-icon-active-color)
  "on":
    button:
      color: var(--paper-item-icon-color)

lovelace-paper-buttons-row#using-style-and-state_styles

On another note you can use three backticks for code formatting on Github, e.g.

```yaml
type: entities
```

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@Mithrox
Comment options

@jcwillox
Comment options

@Mithrox
Comment options

@jcwillox
Comment options

@Mithrox
Comment options

Answer selected by jcwillox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants