native mobile text field alpha vs. dark mode vs. clear control

Mike Kerner MikeKerner at roadrunner.com
Sun Jun 4 12:49:19 EDT 2023


oh, this is fun:
create a native mobile text field
set the backgroundColor to 255,255,255,255 #or just set the alpha...
make sure the clearButtonMode is not "never" (because otherwise you
won't ever see this issue)
make sure your mobe is set to light mode
you should see the clear button.
now set your mobe to dark mode
switch back to the app
the clear button is invisible. it's still there, you just can't see it.
now switch the alpha on the field: set the backgroundColor to 255,255,255,0
you can see the clear button
do the reverse: set the backgroundColor to 0,0,0,255
set the backgroundColor to 0,0,0,0

-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."



More information about the use-livecode mailing list