Change text color in floating text or dialog box

Dm114

Well-known member
I'm sure I was able to enhance such texts but I'm not able to find how anymore. Html tags work well to fiddle with font sizes but <font color=...> or <color=...> don't work.

Did I miss something?
 

Griffin 👺

New member
I still don't understand why MacroDroid can't use the standard html syntax as follows:
HTML:
<html><body><span style="background-color:#33333350; color: yellow">{lv=tagPattern}</span><span>{lv=contentPattern}</span></body></html>
Please enlighten me. Thank you
 

MacroDroidDev

Administrator
Staff member
This is a TextView which has limited supported for basic HTML formatting only. I'm not going to start putting WebViews everywhere because they are too heavy weight to use throughout the app like this.
 

Griffin 👺

New member
This is a TextView which has limited supported for basic HTML formatting only. I'm not going to start putting WebViews everywhere because they are too heavy weight to use throughout the app like this.
Thanks for your infos.

So is there any possibility that in the future we will be able to use html more diversely?
 
I tried using html with some variables in it, and it didn't work. Is this impossible or I just did something wrong?
That's the line i used:
<p style="color: rgb({lv=corRed},{lv=corGreen},{lv=corBlue});">{battery}%</p>
I defined these 3 vars as functions of the battery %, so the text would start green (100-50%), start getting yellowish (49-25%), then reddish (24-0%).
Do you have any ideia of how can i make this work?
 
Top