Picker has two components :
- The Initial/Selected value displayed in Codenameone UI.
- The Native picker dialogs/sheets.
It makes sense that we can not control the theme/color/style of Native Pickers as they are influenced by an OS-specific theme selected by the user.
But how do we change the color of text inside the picker in Codenameone Interface?
What I want to do in the following screenshot is to make the texts "3/20/20, 00:00, & 0-5 persons" white.
What I tried :
- Channing the "Label" font-family in CSS changed the font so I tried changing the "color" from CSS but it didn't help.
- I tried changing the foreground color like this :
timePicker.style.fgColor = 0xfffff In CSS I defined a style.
DropdownStyle{ background-color: #333333; color: #FFFFFF; }Then I set the style to picker
datePicker.uiid ="DropdownStyle"
But none of the above ways worked as expected.
What is the right way to do it? I believe I am missing a very simple thing but I couldn't find it myself.



