Skip to content

fix dom refresh loop and add configurable custom colors#52

Open
fuslwusl wants to merge 6 commits intoNisbo:BETAfrom
fuslwusl:BETA
Open

fix dom refresh loop and add configurable custom colors#52
fuslwusl wants to merge 6 commits intoNisbo:BETAfrom
fuslwusl:BETA

Conversation

@fuslwusl
Copy link
Copy Markdown

@fuslwusl fuslwusl commented Mar 1, 2026

allow user to change the colors of the card elements using the ui or yaml configuration:
cardBackgroundColor: transparent
headerBackgroundColor: "#ffffff55"
headerTextColor: "#000000"
textColor: "#ffffff"

@fuslwusl fuslwusl changed the title configurable custom colors fix dom refresh loop and add configurable custom colors Mar 3, 2026
@Nisbo
Copy link
Copy Markdown
Owner

Nisbo commented Mar 10, 2026

Thx for your request, so far the addition for the color options are nice. :)

Now I have to find out why there was a problem with the DOM. I saw you added a delay of 30 seconds and added a lot of lines to the code.

@fuslwusl
Copy link
Copy Markdown
Author

The dom refreshes on every event in homeassistant. If you have lots of items that update very often - for example power measurements every second - the dom updates all the time. you can see this frequent updates in the developer tools in the browser.

@Nisbo
Copy link
Copy Markdown
Owner

Nisbo commented Mar 10, 2026

I tested it in my test system and so far its working but I dont like the design changes.
Now it looks like this

grafik

instead of this

grafik

Appart from the padding changes, TRAM now looks like a S4 and busses like a S5

I’d prefer not to change the default design (also partly for self-defense → WAF 😄).

However, if you think a smaller header (the yellow background) and more compact rows below might be useful for some users, an optional setting in the card editor—similar to the other options you added—could be a good solution.

Just please keep the labels unchanged.

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

Successfully merging this pull request may close these issues.

3 participants