Closed hazymat closed 2 years ago
I was thinking this would be a new tile style, which shows a label/icon/summary on the tile and when clicked launches a fullscreen popup where you can fill it with text/HTML/markup.
That would be even better than what I said!
Rendering anything else than plain text is an issue here. LVGL doesn't offer any format changes within a label widget (basically a text box). The only formating options are "\n" for a line break and the recoloring as we use it for the textIcon and that doesn't work across line breaks.
Even without what @moinmoin-sh just said about unable to format text, remembering that html requires a massive parser. Doubt you could get one to work on an ESP. Best bet would have been a sub-set of Mark-Down.
Given the constaints we have there will be no chance to parse and display any standard mark-up text. To show anything other than plain text a FW specific formating has to done by the backend.
As an alternative to plain text the information could be presented in a "feed style" like pop-up.
Each "post" has a heading
and a body
. Character based coloring is possible.
Could look like this
That looks pretty cool I think Moin, should be able to do plenty with those tools.
In addition to being able to display tiles / keypads etc., would be useful to be able to display plain text or even HTML on a screen.
Useful for serving latest news / weather...