home-assistant / android

:iphone: Home Assistant Companion for Android
https://companion.home-assistant.io/
Apache License 2.0
2.3k stars 636 forks source link

WearOS template tile html tags #2551

Closed chertvl closed 2 years ago

chertvl commented 2 years ago

Is it possible to add HTML Tags feature to template tile for WearOS app? It would be great to stylize my favorite feature a little bit (font color, bold/italic, etc, like it realized in Template widget for Android).

Thanks! Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Describe alternatives you've considered, if any

Additional context

jpelgrom commented 2 years ago

Based on a quick search and some experimentation, I don't think this is feasible.

The function used right now for text only accepts a plain String and settings for style (no mixed styling), and there isn't really a good way to convert HTML to the required format that accepts multiple 'text parts with styling'.

chertvl commented 2 years ago

Based on a quick search and some experimentation, I don't think this is feasible.

The function used right now for text only accepts a plain String and settings for style (no mixed styling), and there isn't really a good way to convert HTML to the required format that accepts multiple 'text parts with styling'.

Many thanks for detailed response!

Perhaps sometime in the future... Closing issue for now till a good times :) Have a nice day!