frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Lovelace Background No Longer Shows Under Transparent Header

Open stmrocket opened this issue 4 years ago โ€ข 18 comments

Checklist

  • [x] I have updated to the latest available Home Assistant version.
  • [x] I have cleared the cache of my browser.
  • [x] I have tried a different browser to see if it is related to my browser.

The problem

Prior to 2020.12.0, adding transparency to the header using a theme would result in the Lovelace background showing through the header. After upgrading, the background appears to start below the header even with header transparency.

Expected behavior

The header will change to the specified transparency and the Lovelace background will show through.

Steps to reproduce

  1. Set app-header-background-color and app-toolbar-background-color to have transparancy in the current theme.
  2. Add a background to the Lovelace view.
  3. reload themes and view.

Environment

  • Home Assistant release with the issue: 2020.12.0 (20201212.0)
  • Last working Home Assistant release (if known): 0.118.5 (20201111.2)
  • Browser and browser version: Chrome 87.0.4280.88
  • Operating system: Windows 10

State of relevant entities

Not Applicable


Problem-relevant configuration

From theme:

midnight:
  app-header-background-color: "rgba(150,150,150,0.2)"
  app-toolbar-background-color: none

Background image from ui-lovelace:

background: center / cover no-repeat url("/local/lovelace/background_19.png") fixed

Javascript errors shown in your browser console/inspector

None shown.


Additional information

Header as shown in Frontend 20201111.2: image

Header as shown in 20201212.0: image

The view icons are different as the 20201111.2 image was taken from a system running the same theme / background configuration but not yet upgraded.

stmrocket avatar Dec 14 '20 19:12 stmrocket

I am seeing this behavior as well. I used to set the header background as transparent and then draw a background image across the whole screen. Now the header will go transparent but the image is not drawn behind the header.

blhoward2 avatar Dec 15 '20 03:12 blhoward2

Have the same problem before have transparent but now it is not working after update. Ha If scroll down see transparent: Ha2

spider7611 avatar Dec 15 '20 07:12 spider7611

I have the same issue. 118.5 worked well and all releases after that has broken this.

Karstensson avatar Jan 14 '21 18:01 Karstensson

Another person here who was enjoying transparent title bar and is now looking for a solution

peter-dolkens avatar Feb 03 '21 13:02 peter-dolkens

If someone is interested in a workaround with card-mod simply put this to your theme. Don't forget to edit the theme name, delete the background in your views and put it in the css code. (background-image)

card-mod-theme: YOURTHEMENAME

card-mod-root: |
  hui-view {
    background: none !important;
  }
  ha-app-layout {
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-image: url("/local/images/wallpaper/background.png") !important;
    background-attachment: fixed !important;
  } 

panhans avatar Feb 24 '21 10:02 panhans

I am having the same issue. Adding the code suggested by panhans to my theme had no impact (I changed the theme name and also the background image url). Still not transparent until scrolling.

fenster24 avatar Apr 16 '21 15:04 fenster24

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment ๐Ÿ‘ This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 15 '21 15:07 github-actions[bot]

The issue persists in Home Assistant Core 2021.7.2.

fenster24 avatar Jul 19 '21 14:07 fenster24

The issue persists in Home Assistant Core 2021.8.8

Giuliointhetube avatar Aug 24 '21 16:08 Giuliointhetube

Issue is still there with 2021.9.7

Joe3n avatar Oct 03 '21 21:10 Joe3n

Issue is still there for me. Very frustrating. 2021.10.4

renegaed avatar Oct 12 '21 16:10 renegaed

Issue persists in HA Core 2021.11.5 Would really like a HA that doesn't look totally horrible.

liquidthex avatar Nov 25 '21 21:11 liquidthex

Issue persists in HA Core 2022.2.1

Pixelpaule avatar Feb 04 '22 13:02 Pixelpaule

Any update on this? Issue still persists on HA Core 2022.2.9.

snarlingllama avatar Mar 29 '22 01:03 snarlingllama

2022.4.7 seems to hold on to the problem

kongjudas avatar Apr 27 '22 09:04 kongjudas

Any update on the issue? Still broken in 2022.6.6 :(

tYn0 avatar Jun 20 '22 17:06 tYn0

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment ๐Ÿ‘ This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Sep 18 '22 18:09 github-actions[bot]

The issue persists in Home Assistant Core 2022.9.5

stmrocket avatar Sep 19 '22 01:09 stmrocket

2022.11 and issue persists

yjamal01 avatar Nov 06 '22 15:11 yjamal01

The issue persists in Home Assistant Core 2022.12.6

dampflok2000 avatar Dec 22 '22 14:12 dampflok2000

2023.2.5 and issue persists

kahancock avatar Feb 18 '23 02:02 kahancock

Now I can no longer get transparent header at all

yjamal01 avatar Apr 10 '23 15:04 yjamal01

ITS WORKINGGG!!! ๐Ÿ‘๐Ÿผ image

JOHLC avatar May 06 '23 01:05 JOHLC

ITS WORKINGGG!!! ๐Ÿ‘๐Ÿผ

image

How are you doing it? Please provide some detail...

blhoward2 avatar May 06 '23 01:05 blhoward2

ITS WORKINGGG!!! ๐Ÿ‘๐Ÿผ image

How are you doing it? Please provide some detail...

I am using this theme: https://github.com/JOHLC/transparentblue

JOHLC avatar May 06 '23 02:05 JOHLC

Weird, applying that theme mine is still not transparent. Are you applying any other code with card-mod outside the theme?

blhoward2 avatar May 06 '23 20:05 blhoward2

Weird, applying that theme mine is still not transparent. Are you applying any other code with card-mod outside the theme?

Are you on the latest version of Home Assistant? Also note: You have to scroll down one for it to show like that.

JOHLC avatar May 10 '23 18:05 JOHLC

Previously with 2023.4 it was opaque, even if I scrolled down. I can confirm that is no longer the case, not using that theme but the ios dark theme and google dark theme. I can scroll and the header is transparent, however I still have not managed to extend the background under the header.

I realize that was the original issue, but in 2023.4 it broke to the point where the header was not transparent even when scrolling.

yjamal01 avatar May 10 '23 18:05 yjamal01

I was able to make the header transparent but still cannot get the background to show under the header, which was the point of this issue. Your theme is loading a separate header background in only that section as far as I can tellโ€ฆSent from my iPadOn May 10, 2023, at 1:44 PM, Joel @.***> wrote:๏ปฟ

Weird, applying that theme mine is still not transparent. Are you applying any other code with card-mod outside the theme?

Are you on the latest version of Home Assistant? Also note: You have to scroll down one for it to show like that.

โ€”Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

blhoward2 avatar May 10 '23 18:05 blhoward2

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment ๐Ÿ‘ This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Dec 11 '23 09:12 github-actions[bot]