Chris Ward

unread,
Jan 11, 2018, 8:23:56 PM1/11/18
to MIT App Inventor Forum
If you try to set the Text Colour for a Label to Black, it sets to Default instead. In theory, default could be anything depending on the device..........?

Peregrine Developers

unread,
Jan 12, 2018, 10:38:29 AM1/12/18
to MIT App Inventor Forum
Have you tried setting the text color with blocks when the screen initializes?  

Chris Ward

unread,
Jan 12, 2018, 11:07:30 AM1/12/18
to MIT App Inventor Forum
I know I we can do that Peregrine :)

Just reporting what appears to be a tiny bug.

Evan Patton

unread,
Jan 12, 2018, 11:17:46 AM1/12/18
to MIT App Inventor Forum
Hi Chris,

I think this bug was introduced when we added the custom color picker. App Inventor is optimized to not send the default value of a property. Therefore, when you pick the color that is also the default (in this case, black), the selection is set to default because semantically they are the same--or at least they were until we added the Dark theme.

Note that the default value is hard-coded in App Inventor and is not device specific. For Labels, it will be COLOR_BLACK unless the theme is set to Dark, in which case default will be COLOR_WHITE so that the label text will appear on the black screen background. I think this is really only a bug that will affect users who opt to use the dark theme but won't otherwise be a problem. I have filed this as issue #1127 until we determine the best course of action.

Regards,
Evan

Peregrine Developers

unread,
Jan 12, 2018, 2:59:19 PM1/12/18
to MIT App Inventor Forum
Apologies, I must have sounded like I was insulting your intelligence, I was simply wondering if that worked instead of doing it the normal way. ( ͡° ͜ʖ ͡°)

Chris Ward

unread,
Jan 12, 2018, 4:02:42 PM1/12/18
to MIT App Inventor Forum
Unfortunately, there isn't any intelligence here to be insulted!

Peregrine Developers

unread,
Jan 12, 2018, 4:10:14 PM1/12/18
to MIT App Inventor Forum
[ⱺ!ⱺ]
Reply all
Reply to author
Forward
0 new messages