Skip to content

Entity Row Styling & Accent Color Fix

Choose a tag to compare

@DerTrolli DerTrolli released this 10 May 12:39
· 13 commits to main since this release
21c9aa7

New features

  • Phase 6: Entities card per-row styling — When editing a type: entities card, the Style panel now shows a collapsible section for each entity in the list. Set icon color and text color independently per row. A blue dot marks rows with active styles. Per-row styles are saved as card_mod.style directly inside the entities[] array and parsed back on open. Divider/section rows are correctly ignored.

Bug fixes

  • Accent color now targets card-type-specific CSS variables: --tile-color + --state-icon-color for tile cards, --gauge-color for gauge cards, --state-icon-color + --paper-item-icon-active-color for generic state cards. Previously only --accent-color was set which had no visible effect on most cards.
  • Icon Color + Threshold conflict — when Threshold is already driving icon color, the Icon Color module is now skipped to prevent two conflicting ha-state-icon {} blocks.
  • Conditional background round-tripapplyWhen: on/off now correctly restores when reopening the panel instead of falling back to Advanced CSS.
  • Entity row CSS parser — now handles hand-written single-line :host { color: red; } in addition to the multi-line generated format.
  • Type safetyEntitiesCardRow.entity is now correctly typed as optional, matching runtime reality for divider/section rows.

What's Changed

Full Changelog: v0.3.13...v0.3.14