Skip to content

Hard code add-ons update color to orange in Supervisor #4976

@SeanPM5

Description

@SeanPM5

The request

The Supervisor add-ons page currently uses var(--accent-color). This can be a little bit problematic depending on the users theme. Here's how it looks like on the popular "midnight" theme for example:

midnight

This seems fine at first, but here's a few reasons why it's a tiny bit flawed IMO.

In this below example image, the top red bar is indicating an update is available for the SSH & Web Terminal add-on, and the bottom red bar is indicating that Visual Studio Code add-on is not available on the Raspberry Pi. Two completely different meanings, yet in this theme they look extremely similar.

upgrade-and-unavailable

And here's how it looks on the "solarized-light" and "solarized-dark" themes. You can't even see the update bar at all because the accent color is the same as the background color. There's other community themes with similar problems.

solarized-light
solarized-dark

Second reason is that the add-ons detail page has this hardcoded to orange already iron-icon.update #ffa726 . Here's a screenshot from the "midnight" theme again. As you saw before it was red on the dashboard page, but now you click through to the details page and it's suddenly orange. Having two different colors indicating an update is available is inconsistent and confusing.

details

Third and final reason, is that without having this hard coded, it makes it difficult to describe how this works in documentation and tutorials. You can't simply say "updates appear in orange" because if the user is using a non-default theme that's not always the case.

Sure, you could say that these problems are theme-specific issues, and I'd agree with that. But on the flip side, these themes are out there and are being used, sometimes they have unfortunate color choices. There should be some safeguards in place to prevent themes from hindering the usability of important functionality like this imo.

So for these reasons, I think it makes sense to hard code this. I think line 144 of hassio/src/components/hassio-card-content.ts is what would need to be changed? It's already done on the add-on details page. Orange looks fine on both light and dark themes, so it shouldn't be an issue, and it would immediately solve the problems mentioned above.

The alternatives

Alternative would be to display add-ons with available updates in a separate group on the dashboard page.

Or some kind of "Update" text / badge overlay that doesn't necessarily rely on colors.

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestShould be a discussionSupervisorRelated to the supervisor panelUXUser experience related bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions