Skip to content

Background color of history graphs #25587

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

Open
4 tasks done
jkufner opened this issue May 24, 2025 · 0 comments
Open
4 tasks done

Background color of history graphs #25587

jkufner opened this issue May 24, 2025 · 0 comments

Comments

@jkufner
Copy link

jkufner commented May 24, 2025

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

The contrast in history graphs for events is poor, especially in dark theme:

Image

It would be much better if the background of the graph would be closer to the page/card background.

If I change the inactive color from --state-inactive-color: var(--grey-color); to --state-inactive-color: var(--secondary-background-color);, then the graph looks much better:

Image

Also, it is still good when using the light theme:

Image

However, simply changing --state-inactive-color will also affect icons on dashboards and other things, so it is not a good fix. I guess the graphs need an additional variable or use a different variable. Also, the light theme contrast is still pretty bad (both before and after the change), so maybe a darker yellow should be used there.

Describe the behavior you expected

The graphs should use more readable colors.

Steps to reproduce the issue

  1. Open any history graph with event/binary state entities (e.g., occupancy or door sensors).

What version of Home Assistant Core has the issue?

2025.5.3

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue?

It is not browser-specific. Reproduced in Chromium 134.0.6998.35 and mobile Firefox.

Which operating system are you using to run this browser?

Linux, Android

State of relevant entities

Problem-relevant frontend configuration

Javascript errors shown in your browser console/inspector

Additional information

No response

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

1 participant