From 803fabbf648e52a879059663d01d74c80d827e46 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Wed, 3 Dec 2025 12:46:07 +0100 Subject: [PATCH] Use svg for snowflakes (#28306) --- src/components/ha-snowflakes.ts | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/components/ha-snowflakes.ts b/src/components/ha-snowflakes.ts index 05a8416e92..fa88fb86ee 100644 --- a/src/components/ha-snowflakes.ts +++ b/src/components/ha-snowflakes.ts @@ -10,7 +10,6 @@ interface Snowflake { size: number; duration: number; delay: number; - blur: number; } @customElement("ha-snowflakes") @@ -51,7 +50,6 @@ export class HaSnowflakes extends SubscribeMixin(LitElement) { size: Math.random() * 12 + 8, // Random size between 8-20px duration: Math.random() * 8 + 8, // Random duration between 8-16s delay: Math.random() * 8, // Random delay between 0-8s - blur: Math.random() * 1, // Random blur between 0-1px }); } this._snowflakes = snowflakes; @@ -75,20 +73,26 @@ export class HaSnowflakes extends SubscribeMixin(LitElement) { @@ -128,16 +132,10 @@ export class HaSnowflakes extends SubscribeMixin(LitElement) { .light .snowflake { color: #00bcd4; - text-shadow: - 0 0 5px #00bcd4, - 0 0 10px #00e5ff; } .dark .snowflake { color: #fff; - text-shadow: - 0 0 5px rgba(255, 255, 255, 0.8), - 0 0 10px rgba(255, 255, 255, 0.5); } .snowflake.hide-narrow {