Dynamic font color on Control Pages

Posted on
Mon Apr 13, 2020 8:37 pm
Ramias offline
Posts: 272
Joined: Nov 24, 2015

Dynamic font color on Control Pages

I’d like font color (and maybe size) to change based on device state.

I’ve written a stock price checker that stores price and Up/Down as device states. Would like to show stock price on control pages in green or red.

Would like to choose font color based on device state; or variable value (and I could dynamically set the variable). I could even have a fontColor variable and call it ‘red’ or ‘green’ or some pallet number.

Edit: or store Control Page elements as properties that could be updated via code :D

Posted on
Tue Apr 14, 2020 8:13 am
jay (support) offline
Site Admin
User avatar
Posts: 18221
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Dynamic font color on Control Pages

Thanks for the request, we'll add it to the list (if it's not already there, I believe it is).

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 14 guests

cron