vacuum-card icon indicating copy to clipboard operation
vacuum-card copied to clipboard

Background color is incorrect when using theme

Open vmartinv opened this issue 2 years ago • 3 comments

Describe the bug

I'm using the theme ios-dark-mode-red-alternative, after #353 which fixed #337 the UI is considerably better however it still needs improvement, as shown below.

Steps to reproduce

  1. Install and activate theme ios-dark-mode-red-alternative (any ios theme is affected though, they are available here)
  2. Add vacuum card
  3. Notice the background and borders are different than the rest of the widgets.

Expected behaviour

Vacuum card should have the same style as the rest of the widgets (check screenshot for reference)

Screenshot

Screenshot 2022-04-22 at 21 39 41

Versions

Release: v2.6.0 Browser: chrome HomeAssistant version: 2022.03.03

vmartinv avatar Apr 22 '22 20:04 vmartinv

I'll try to take a look at that. Help is appreciated.

denysdovhan avatar Apr 26 '22 12:04 denysdovhan

Remove in vacuum-card.js

--vc-background:var( --ha-card-background, var(--card-background-color, white) ); image

image

sharonna511 avatar Jun 01 '22 05:06 sharonna511

1

Still like this after removing that line in vacuum-card.js

ams3401 avatar Aug 09 '22 03:08 ams3401

With card-mod integration can be solved. Képernyőfotó 2022-10-14 - 21 01 53

Install card-mod and add to yaml:

style: |
  div.toolbar {background: unset;}
  div.preview {background: unset;}

joddye2 avatar Oct 14 '22 19:10 joddye2

We are using --ha-card-background. You can override it with --vc-background variable.

denysdovhan avatar Jun 09 '23 14:06 denysdovhan