ysc
(Yannick Schaus)
June 27, 2017, 10:26pm
11
Yes, but the āOrange treeā theme you made is already bundled in, so users only have to switch to it. Iāll make a post about other more developer-oriented additions.
Edit: ended up explaining most of these things here:
As it happens, there is a new (undocumented) way of accessing these colors in a template since last week when the themes were rewritten by @kubawolanin :
The syntax below:
{{ variable | themeValue:'primary-color' }}
(leave out the {{ }} if youāre already in an expression, obviously)
will give you the āprimary colorā of the current theme (for example for the Material theme it will be red) if variable is not set. This is useful so you can replace variable with e.g. a color config option of yourā¦
Oh, and you can now also easily override some of these variables with the new āadditional stylesheetā option in HABPanelās additional settings.
[image]
You cannot provide your stylesheet inline because āreasonsā, rather you have to write a file like below and put it in the static files directory of your openHAB server (conf/html):
:root {
--body-bg: #333;
--primary-color: #888888;
--box-bg: rgba(255, 255, 255, 0.1);
--icon-color-filter: invert(90%) sepia(0%) saturate(0ā¦