-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Climate card fixes + Actions fix + More
- [x] Reverted a breaking change from a previous beta, where the pop-up blurred backdrop was disabled by default. But this is still a breaking change, now the default backdrop is darker without any blur. This can be changed in the editor, just go to your first pop-up on your view, then go to Styling options > Pop-up styling then change `Optional - Backdrop blur` to 10 (it was the previous value). In YAML just add `backdrop_blur: 10`. If you missed it, I changed that because the blur can slow down pop-ups on some older devices. - [x] Changing temperature values in a climate card is now correctly synched if there was a change elsewhere. #942 - [x] New toggle in the climate card editor for users who wants to have a constant background color when the entity is `on`. #933 - [x] Buttons with a white light (or without RGB) are now more visible on bright/light themes. I also improved the overall color system for better color handling. It is also possible to change the color with the `--bubble-light-color` variable. #692 - [x] The climate card now correctly support `entity_picture` for the icon. #939 - [x] Actions now have a new toggle in the editor when set to Call service, this way it will automatically match the card/sub-button entity if defined. This is a breaking change for users of the previous beta who removed the entity_id completely, I had to change this because it was causing an issue in #935.
- Loading branch information
Showing
14 changed files
with
362 additions
and
164 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
function hideElementsUntilBubbleCard() { | ||
const selector = "body"; | ||
const root = document.querySelector(selector); | ||
let bubbleCard = customElements.get("bubble-card"); | ||
// function hideElementsUntilBubbleCard() { | ||
// const selector = "body"; | ||
// const root = document.querySelector(selector); | ||
// let bubbleCard = customElements.get("bubble-card"); | ||
|
||
const intervalId = setInterval(function() { | ||
bubbleCard = customElements.get("bubble-card"); | ||
// const intervalId = setInterval(function() { | ||
// bubbleCard = customElements.get("bubble-card"); | ||
|
||
if (bubbleCard) { | ||
clearInterval(intervalId); | ||
root.style.transition = "opacity 0.5s"; | ||
root.style.opacity = "1"; | ||
} else { | ||
root.style.opacity = "0"; | ||
} | ||
}, 0); | ||
// if (bubbleCard) { | ||
// clearInterval(intervalId); | ||
// root.style.transition = "opacity 0.5s"; | ||
// root.style.opacity = "1"; | ||
// } else { | ||
// root.style.opacity = "0"; | ||
// } | ||
// }, 0); | ||
|
||
setTimeout(function() { | ||
clearInterval(intervalId); | ||
root.style.transition = "opacity 0.5s"; | ||
root.style.opacity = "1"; | ||
}, 1500); | ||
} | ||
// setTimeout(function() { | ||
// clearInterval(intervalId); | ||
// root.style.transition = "opacity 0.5s"; | ||
// root.style.opacity = "1"; | ||
// }, 1500); | ||
// } | ||
|
||
hideElementsUntilBubbleCard(); | ||
// hideElementsUntilBubbleCard(); | ||
|
||
console.info( | ||
`%c Bubble Card %c Pop-up fix `, | ||
`%c Bubble Card %c Pop-up fix - Deprecated, please remove it`, | ||
'background-color: #555;color: #fff;padding: 3px 2px 3px 3px;border-radius: 14px 0 0 14px;font-family: DejaVu Sans,Verdana,Geneva,sans-serif;text-shadow: 0 1px 0 rgba(1, 1, 1, 0.3)', | ||
'background-color: #506eac;color: #fff;padding: 3px 3px 3px 2px;border-radius: 0 14px 14px 0;font-family: DejaVu Sans,Verdana,Geneva,sans-serif;text-shadow: 0 1px 0 rgba(1, 1, 1, 0.3)' | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.