From aa0419e7839590f5638b57e01093f5377c0b69c3 Mon Sep 17 00:00:00 2001 From: Kendell R Date: Tue, 7 Nov 2023 04:39:38 -0800 Subject: [PATCH] Minify logos (#18542) --- demo/src/html/index.html.template | 16 +++------------- public/static/icons/mask-icon.svg | 24 +----------------------- src/components/ha-logo-svg.ts | 14 +++++--------- src/html/authorize.html.template | 23 ++++------------------- src/html/index.html.template | 16 +++------------- src/resources/home-assistant-logo-svg.ts | 2 +- 6 files changed, 17 insertions(+), 78 deletions(-) diff --git a/demo/src/html/index.html.template b/demo/src/html/index.html.template index 89236790af..c2be4e7cc3 100644 --- a/demo/src/html/index.html.template +++ b/demo/src/html/index.html.template @@ -74,19 +74,9 @@
- - - + + +
diff --git a/public/static/icons/mask-icon.svg b/public/static/icons/mask-icon.svg index 66db74fcc8..0993bef4cc 100644 --- a/public/static/icons/mask-icon.svg +++ b/public/static/icons/mask-icon.svg @@ -1,23 +1 @@ - - - - - - - + \ No newline at end of file diff --git a/src/components/ha-logo-svg.ts b/src/components/ha-logo-svg.ts index 532c002c67..1f34735ac6 100644 --- a/src/components/ha-logo-svg.ts +++ b/src/components/ha-logo-svg.ts @@ -4,18 +4,14 @@ import { customElement } from "lit/decorators"; @customElement("ha-logo-svg") export class HaLogoSvg extends LitElement { protected render(): TemplateResult { - return html` + return html` `; } diff --git a/src/html/authorize.html.template b/src/html/authorize.html.template index b5fd0259f4..2770e1a32a 100644 --- a/src/html/authorize.html.template +++ b/src/html/authorize.html.template @@ -15,9 +15,6 @@ justify-content: center; height: 73px; } - .logomark { - fill: #F2F4F9; - } .wordmark { fill: #1D2126; } @@ -35,22 +32,10 @@
- - - - - - - - - - - - - - - - + + + +
diff --git a/src/html/index.html.template b/src/html/index.html.template index 183bc7e561..efcea2af68 100644 --- a/src/html/index.html.template +++ b/src/html/index.html.template @@ -50,19 +50,9 @@
- - - + + +
diff --git a/src/resources/home-assistant-logo-svg.ts b/src/resources/home-assistant-logo-svg.ts index 9eeb6ee856..c37e6eb46c 100644 --- a/src/resources/home-assistant-logo-svg.ts +++ b/src/resources/home-assistant-logo-svg.ts @@ -1,2 +1,2 @@ export const mdiHomeAssistant = - "m12.151 1.5882c-0.32617 1.292e-4 -0.65235 0.12907-0.89964 0.38672l-8.3848 8.7354c-0.061873 0.06443-0.12224 0.13674-0.18069 0.21539-1.018e-4 1.72e-4 -2.376e-4 1.72e-4 -3.31e-4 3.53e-4 -0.058394 0.07855-0.1147 0.16343-0.16842 0.25303-0.25934 0.43253-0.4552 0.97486-0.52317 1.4555-0.00255 0.018-0.00764 0.03695-0.00942 0.05478-0.012052 0.09874-0.018418 0.19443-0.018418 0.28568v7.959c0 0.72958 0.5729 1.3265 1.2731 1.3265h7.8313l-3.4484-3.593c-0.17739 0.06365-0.36671 0.09984-0.56362 0.09984-0.95908 0-1.7399-0.81359-1.7399-1.8129 0-0.99929 0.78085-1.8129 1.7399-1.8129 0.95908 0 1.7399 0.8136 1.7399 1.8129 0 0.20605-0.034883 0.40329-0.095985 0.58812l2.6847 2.7972v-10.248c-0.57715-0.29532-0.97606-0.91251-0.97606-1.6262 0-0.99929 0.78084-1.8129 1.7399-1.8129 0.95908 0 1.7399 0.81359 1.7399 1.8129 0 0.71366-0.39891 1.3309-0.97606 1.6262v7.187l2.6702-2.782c-0.05262-0.17333-0.08156-0.35738-0.08156-0.5484 0-0.9993 0.78084-1.8129 1.7399-1.8129 0.95908 0 1.7399 0.8136 1.7399 1.8129 0 0.99929-0.78084 1.8129-1.7399 1.8129-0.21219 0-0.41417-0.04152-0.60174-0.114l-3.7269 3.8831v2.7299h8.1479c0.61268 0 1.1279-0.45698 1.2471-1.06 0.01698-0.08588 0.02597-0.17475 0.02606-0.26565v-7.959c0-0.09119-0.0059-0.18679-0.01842-0.2855-0.06026-0.49355-0.26358-1.0617-0.53262-1.5105-0.05373-0.08961-0.11007-0.17449-0.16842-0.25304-8.5e-5 -1.81e-4 -2.55e-4 -1.81e-4 -3.4e-4 -3.53e-4 -0.05848-0.07864-0.11884-0.15094-0.18069-0.21539l-8.3848-8.7363c-0.2473-0.25768-0.57348-0.38663-0.89965-0.38675z"; + "m12.151 1.5882c-.3262 0-.6523.1291-.8996.3867l-8.3848 8.7354c-.0619.0644-.1223.1368-.1807.2154-.0588.0789-.1151.1638-.1688.2534-.2593.4325-.4552.9749-.5232 1.4555-.0026.018-.0076.0369-.0094.0548-.0121.0987-.0184.1944-.0184.2857v8.0124a1.2731 1.2731 0 001.2731 1.2731h7.8313l-3.4484-3.593a1.7399 1.7399 0 111.0803-1.125l2.6847 2.7972v-10.248a1.7399 1.7399 0 111.5276-0v7.187l2.6702-2.782a1.7399 1.7399 0 111.0566 1.1505l-3.7269 3.8831v2.7299h8.174a1.2471 1.2471 0 001.2471-1.2471v-8.0375c0-.0912-.0059-.1868-.0184-.2855-.0603-.4935-.2636-1.0617-.5326-1.5105-.0537-.0896-.1101-.1745-.1684-.253-.0588-.079-.1191-.1513-.181-.2158l-8.3848-8.7363c-.2473-.2577-.5735-.3866-.8995-.3864";