Description
backgroundGradient.colors property should accept an array containing just strings representing color values, as opposed to an array of objects with color values and offset value
var _window = Ti.UI.createWindow();
var buttonAddFav = Titanium.UI.createButton({
title: 'add2favs',
backgroundGradient: {
type: 'linear',
startPoint: {x: 0.0, y: 0.0},
endPoint: {x: 0.0, y: "100%"},
// colors: ['#aaa', '#f00']
colors: [{ color: '#aaa', offset: 0.0 }, { color: '#f00', offset: 1.0 }]
}
});
_window.add(buttonAddFav);
_window.open()
Steps to reproduce
Add the above to an existing app.js and build for Windows
Comment out the array of objects and uncomment the array of color strings
Actual
backgroundGradient disappears after step 2
Expected
backgroundGradient should stay
https://github.com/appcelerator/titanium_mobile_windows/pull/1279
*FR passed* waiting on Master branch.
Closing ticket. Fix verified in SDK version 7.5.0.v20180917031523. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/1279