I have a raspi with a 10" display running openhab. A browser shows the BasicUI sitemap all the time.
My problem is that the white theme of the BasicUI is too bright for my taste.
I know I could create a HABPanel with a dark background. But since my UI is still far from being finished and I also want to use the BasicUI on mobile devices, I prefer to use the BasicUI for now.
Is there any way to force the BasicUI to use a dark theme? Like you can configure in the Android app?
However I think that might be interesting for more users and could become available in future. What we basically need for that is ab alternative style sheet and a mechanism in Basic UI to select a theme.
You can shortcut this process for yourself now and provide the css style sheet you use while you are at it. Google for greasemonkey and css if you accept the challenge…
I’ve only just started playing with this and am already pleased with the possibilities.
Thanks @kubawolanin for your work to make this more accessible.
It would be nice if this were to be accessible to the iOS app as well… the white screen can be blinding when adjusting settings in a dark bedroom. Would this need to be developed on the iOS app level, or does the app pull any kind of CSS data from the openHAB server? @patrik_gfeller’s CSS injection technique doesn’t seem to affect the display of the iOS app at all.
The above needs to be save as {openhab-path}/conf/html/DarkTheme.html
You then just only need to include the following line at the end of your sitemap:
If I’m not mistaken, you can choose dark theme for the Basic UI. I’m using OH nightly 2.3.0 build 1202 and a setting for this is available in Paper UI -> Configuration -> Services -> UI -> Basic UI -> Theme. You can choose between Default (Light) and Dark.
But on my tablet it is always the light theme loaded
I was a big fan of GreenT interface in OH1. I do not understand why there is so unused space in Basic UI. They could but the menu to subpanels on the left