I’ve been playing around with inspecting elements in the browser to see how far I can modify things. I was able to create this background blur effect when clicking on an entity and viewing the more info dialog:
I know this isn’t something I can easily modify since iron-overlay-backdrop is part of Polymer.
Would something like lovelace-popup-card give me this level of customization or would I need to do something even deeper and crazier? By the way here is the code to reproduce this effect if anyone wants to mess around with it:
That’s awesome! I’m glad I’m not the only one messing around with backdrop-filter. I’ve got a few iOS and tvOS inspired themes in the works and am always looking for new ways to use that effect now that it’s supported in Chrome.
Keep me posted on your progress and I’d also love to check out your UI when you’ve got it done.
Yeah I’ve loved the look for a while so I am really excited that backdrop-filter is supported in Chrome now and will be supported in Firefox soon! I have also made a pull request to get backdrop-filter supported in custom-compact-header so hopefully that will get merged in soon too!
I am working on getting backdrop-filter added to cards (This one is weird though because of shadow DOMs) but I will post some screenshots. I’d also like to see your UI a bit more!
I did but I haven’t been super satisfied with it. Unfortunately, I think there are too many cards rendered throughout the UI.
The code to add the backdrop-filter was a bit messy since it had to recursively search for cards, then once the filter was added, the browser started lagging a bit. I sort of gave up on it since there isn’t much I can do about the lag.
I can push what I have to a dev branch, though, if you want to see it!
Hi, sorry for reviving an old post, i really like how your pop up looks, and i want to do the see-through background of the popup card. How did you do it? I am using card-mod plugin, but so far i can only achive this:
In your theme you can use the paper-dialog-background-color property to change the background color of the popup. If you want it be transparent you can set it to something like this:
So if anyone here is interested, I managed to get it working in Safari both on macOS and iOSusing the -webkit- prefix on the bg-filter. This isn’t needed for android or chrome based browsers - it stays as just backdrop-filter.
You can use both -webkit-backdrop-filter and backdrop-filter to have it display blurring on both Safari and android/chrome based browsers.
Add this to your theme yaml, but note you must be running the card-mod plugin for it to work.
I’m confused a little bit. How can I achieve the blurred bacground behind the popup cards? Where and how can be written the cod and what code is needed? I tried lot of variation without any succes. The popup backdrop filter is installed.
It appears to be broken for everyone. Olle found a solution using the card-mod plugin mentioned a few posts above. I’m playing around with getting this to work with CSS and javascript includes similar to what Gabe did originally. I’ll reply here if I get it working.