Closed rpitera closed 4 years ago
For the moment, I have reverted to the previous release in hopes that this will be addressed at some point. I don't think a custom card should dictate a background color unless that attribute can be overridden by the user.
I second @rpitera ‘s sentiments. The white is horrendous.
I'm not sure why a background for the card was necessary as the gauge faces have their own background attribute, but if so at least document the attribute it so it can be adjusted to the user's liking.
I changed line 70 in canvas-gauge-card.js from: background-color: white !important;
to background-color: var(--paper-card-background-color, white);
Works fine for now
When I tried that it didn't seem to work but maybe I didn't clear the cache enough. I suppose I could try it again but I'd rather stick with official releases if possible and see this resolved.
Working copy now published, I changed the build system so the actual js file is in release not in src folder. Also now just need the one file since all dependencies are merged in build.
You can now use yaml setting background_color
to set the color of the background. See docs!
Had a beautiful compass going and although it wasn't centered it still looked great. Updated to the latest version via HACS and now I have a white background. Not sure how to change the background of the card back to the previous transparency because there's no documentation on the new card styling attributes. Could use some help. I mean, I appreciate that it's centered now, but the white bg is killing me.
Tried using:
with both a color name and with rgba coloring, neither worked.