I am running OH3.1 on a synology docker and i try to design it nicely for smartphone use (in the first place). To do that i clicked on “PAGES” → “Home Page” → and switched to tab “code”.
I have searched the web and found not many but some attempts to design that area. But none worked for me. Maybe you can assist?
The default cards in the overview tabs just don’t have a lot of capability for modifications. They are much less modifiable than custom widgets. They were intended to be simplistic and standardized. It is possible that you could enact some of these modifications using the page stylesheet property (a quick forum search should get you several examples these days) and assigning individual cards their own classes, but even then you’ll have far less flexibility than you would if you just created your own widgets from scratch.
I am right that widgets can only be used in the “Overview” (Übersicht) tab of WebUI ?
If yes the locations and devices tab can’t be really styled in a way, because there i can not use custom widgets
Is there a chance to inject custom CSS code (or a custom style.css) once the HTML output is genereted for WebUI?
For that default entry point, yes, widgets can only be added to the Overview tab. However, you can create full pages populated with any and all custom widgets you wish and link to those from the overview page or the sidebar (so they are only one click away just like the equipment etc tabs).
Yes, see my comment above about looking for the stylesheet property. This is a way for you to add custom css styling to entire pages within the UI.
The forum search for “stylesheet property” only gave me one reasonable link: New Stylesheet property where it is about widgets again.
I did not find help for injecting CSS into “locations & equipment” tab.
Maybe i will give custom pages + custom widgets a try if it only was quicker to realise/code for beginners