[TIMOB-19829] iOS: Add trackTintColor to Ti.UI.ProgressBar
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-11-02T17:43:18.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.2.0 |
Components | iOS |
Labels | ios, progressbar |
Reporter | Flavio De Stefano |
Assignee | Hans Knöchel |
Created | 2015-10-29T14:48:32.000+0000 |
Updated | 2016-01-14T22:10:48.000+0000 |
Description
Currently, the
Ti.UI.ProgressBar
on iOS support coloring options for the active progress. This improvement allows to also set the trackTintColor
to cover color of the tracked progress.
*Demo*:
var win = Ti.UI.createWindow({
backgroundColor: "#fff"
});
var progress = Ti.UI.createProgressBar({
tintColor: "green",
trackTintColor: "red",
min: 0,
max: 1,
value: 0.3,
width: 300
});
win.add(progress);
win.open();
https://github.com/appcelerator/titanium_mobile/pull/7373
[~kopiro] can you please add a description of this feature and the test steps/case to the ticket?
[~ingo] Added description and demo to cover this. The PR is awaiting final changes and can then be merged.
Verified fixed, tested demo code as stated, as well as trying various colors for both
tintColor
&trackTintColor
. Tested on: iPhone 6s Device (9.2) & iPhone 6 Plus Device (8.4) Mac OSX El Capitan 10.11 (15A284) Ti SDK: 5.2.0.v20160114021251 Appc NPM: 4.2.2 App CLI: 5.2.0-220 Xcode 7.2 Node v4.2.3 production *Closing ticket.*