Project: titanium
Issue TIMOB-19664: Windows: ListItem title color is black (should be white) and cannot be changed
The following sample based on the [first classic sample in the docs|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ListView] shows that on Windows ListItem titles default to black, which is not readable on the default black background color. It also shows that setting the {{color}} property of the ListItem doesn't work either, which is [documented|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ListItem-property-color] but makes the built-in templates pretty much useless. {code:javascript} var win = Ti.UI.createWindow({backgroundColor:'#888'}); var listView = Ti.UI.createListView(); var sections = []; var fruitSection = Ti.UI.createListSection({ headerTitle: 'Fruits'}); var fruitDataSet = [ {properties: { title: 'Apple', color: '#FFF'}}, // has no effect {properties: { title: 'Banana'}}, ]; fruitSection.setItems(fruitDataSet); sections.push(fruitSection); var vegSection = Ti.UI.createListSection({ headerTitle: 'Vegetables'}); var vegDataSet = [ {properties: { title: 'Carrots'}}, {properties: { title: 'Potatoes'}}, ]; vegSection.setItems(vegDataSet); sections.push(vegSection); listView.sections = sections; win.add(listView); win.open(); var fishSection = Ti.UI.createListSection({ headerTitle: 'Fish'}); var fishDataSet = [ {properties: { title: 'Cod'}}, {properties: { title: 'Haddock'}}, ]; fishSection.setItems(fishDataSet); listView.appendSection(fishSection); {code}
Story points: 5