Widget 2.0 Newpickerwheel Columncolor Not Working In Daily Build 1074

Hi @heftyApps,

When I spoke with a few of the engineers yesterday, they reported that a round of widget fixes will be implemented soon, hopefully by the end of this week. I will need to check if this one is part of that list… ideally it will be.

Best regards,

Brent

Any update on changing font size?

I just edited the WidgetDemo sample app with 2076 and I can change the font and fontSize with one caveat.  The height of the rows on the wheels is fixed.  The default fontSize is 22.  Depending on the font metrics (long descenders, etc), you may only be able to get up to a 26 point font in there with out it cutting off.  There is no reason this shouldn’t be working in the G1.0 builds.  I shipped an app a month or so ago where i changed the font to more of an iOS 7 look.

Rob

Thanks Rob.

Any update on changing font size?

I just edited the WidgetDemo sample app with 2076 and I can change the font and fontSize with one caveat.  The height of the rows on the wheels is fixed.  The default fontSize is 22.  Depending on the font metrics (long descenders, etc), you may only be able to get up to a 26 point font in there with out it cutting off.  There is no reason this shouldn’t be working in the G1.0 builds.  I shipped an app a month or so ago where i changed the font to more of an iOS 7 look.

Rob

Any news on being able to change the columnColor for a picker ?

Reading the forums this seems to have been a problem since april !!!

No updates.  We are working on fixing bugs in the widget library and this is one of them.

Rob

Thanks, thats really helpful

Thanks Rob.

Hey guys,

Just letting you know that starting with today’s daily (2013.2109) the picker supports passing both columnColor and backgroundColor to the constructor, and honors them.

So doing:

local pickerWheel = widget.newPickerWheel { top = 300, columns = someTable, columnColor = { 1, 0, 0 }, backgroundColor = { 1, 0, 0 }, }

will produce a picker with red background color and red column background color.

Thanks,

alex

Hi Alex, This works and looks great! 

Can you or one of your colleagues kindly explain what the backgroundColor does just so we understand and use this correctly?

I tried using the colors you provided above in WidgetDemo and I could indeed get the whole pickerWheel in red. I then commented out the backgroundColor part and I saw a line drawn under each row but the rest was still all red. I then experimented with just the  backgroundColor in red and columnColor commented out and indeed I only got a red line drawn under each row.

So the backgroundColor seems to control an underlining of some sort but I don’t quite understand what the purpose might be. I would appreciate some guidance info on this. Thank you very much. 

PS. Moving this one to “Fixed” in the spreadsheet! Good work.

Any news on being able to change the columnColor for a picker ?

Reading the forums this seems to have been a problem since april !!!

No updates.  We are working on fixing bugs in the widget library and this is one of them.

Rob

Thanks, thats really helpful

Hey guys,

Just letting you know that starting with today’s daily (2013.2109) the picker supports passing both columnColor and backgroundColor to the constructor, and honors them.

So doing:

local pickerWheel = widget.newPickerWheel { top = 300, columns = someTable, columnColor = { 1, 0, 0 }, backgroundColor = { 1, 0, 0 }, }

will produce a picker with red background color and red column background color.

Thanks,

alex

Hi Alex, This works and looks great! 

Can you or one of your colleagues kindly explain what the backgroundColor does just so we understand and use this correctly?

I tried using the colors you provided above in WidgetDemo and I could indeed get the whole pickerWheel in red. I then commented out the backgroundColor part and I saw a line drawn under each row but the rest was still all red. I then experimented with just the  backgroundColor in red and columnColor commented out and indeed I only got a red line drawn under each row.

So the backgroundColor seems to control an underlining of some sort but I don’t quite understand what the purpose might be. I would appreciate some guidance info on this. Thank you very much. 

PS. Moving this one to “Fixed” in the spreadsheet! Good work.