Add background text color

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
dgiorgi
Posts: 9
Joined: 20 May 2013 17:42

Add background text color

Post by dgiorgi » 27 Jan 2019 11:41

Hello,
I suggest to add the property "background color" for the Element TEXT of the widgets.

Like this:
setWidgetElementProperty("Widget_Calendario", "Titolo", "text", "Lorem ipsum dolor sit amet");
setWidgetElementProperty("Widget_Calendario", "Titolo", "backgroundcolor", "#ffff0000");

Regards.
Danilo

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: Add background text color

Post by digitalstone » 27 Jan 2019 18:18

I was about to say this would be too specific and you could easily solve it with a simple rectangle behind it.
But then variable text can have a whatever-amount of width.

This request isn't bad at all ;)
+1
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

dgiorgi
Posts: 9
Joined: 20 May 2013 17:42

Re: Add background text color

Post by dgiorgi » 28 Jan 2019 16:48

Currently I use the rectangle, but setting the background color of the text would be simpler.
Thank you

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Add background text color

Post by Desmanto » 28 Jan 2019 17:28

It seems we all naturally find the common way to place rectangle behind a text to give it color. :D
+1 for this feature. We can get rid of that additional rectangle and control the text element directly instead.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Locked