mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +00:00
commit
4641cd65ca
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="home-assistant-frontend",
|
name="home-assistant-frontend",
|
||||||
version="20190917.0",
|
version="20190917.1",
|
||||||
description="The Home Assistant frontend",
|
description="The Home Assistant frontend",
|
||||||
url="https://github.com/home-assistant/home-assistant-polymer",
|
url="https://github.com/home-assistant/home-assistant-polymer",
|
||||||
author="The Home Assistant Authors",
|
author="The Home Assistant Authors",
|
||||||
|
@ -44,14 +44,15 @@ export default function applyThemesOnElement(
|
|||||||
if (key.startsWith("rgb")) {
|
if (key.startsWith("rgb")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const rgbKey = `--rgb-${key}`;
|
const rgbKey = `rgb-${key}`;
|
||||||
if (theme[rgbKey] === undefined) {
|
if (theme[rgbKey] !== undefined) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
element._themes[rgbKey] = "";
|
const prefixedRgbKey = `--${rgbKey}`;
|
||||||
|
element._themes[prefixedRgbKey] = "";
|
||||||
const rgbValue = hexToRgb(theme[key]);
|
const rgbValue = hexToRgb(theme[key]);
|
||||||
if (rgbValue !== null) {
|
if (rgbValue !== null) {
|
||||||
styles[rgbKey] = rgbValue;
|
styles[prefixedRgbKey] = rgbValue;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user