[TIMOB-20621] Windows: Titanium.UI.ProgressBar 'color' property has no effect on text
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-04-07T13:54:22.000+0000 |
Affected Version/s | Release 5.2.0 |
Fix Version/s | Release 5.4.0 |
Components | Windows |
Labels | parity, qe-5.4.0 |
Reporter | Kota Iguchi |
Assignee | Gary Mathews |
Created | 2016-03-24T00:09:06.000+0000 |
Updated | 2016-06-27T17:04:08.000+0000 |
Description
The 'color' property of Titanium.UI.ProgressBar does not effect the text. The text stays "white" and thus invisible to a white background. The 'color' property only effects the color of the bar itself.
Per [~cwilliams] {quote} PS. the issue here is that 'color' changes the text on iOS. tintColor changes the "filled" color on iOS. 'trackTintColor' changes the color of the 'not filled" portion of the bar. On Android, 'color' changes the bar and not the text. There's no tintColor or trackTintColor property on Android. Looks like tintColor maps to http://developer.android.com/reference/android/widget/ProgressBar.html#attr_android:progressTint and trackTintColor maps to http://developer.android.com/reference/android/widget/ProgressBar.html#attr_android:progressBackgroundTint Ideally color should change the text color on both; tintColor should change the bar (fill) color on both, trackTintColor should change the "unfilled" color of the bar. {quote}
PR: https://github.com/appcelerator/titanium_mobile_windows/pull/609
Verified as fixed, Ti.UI.ProgressBar
color
property now correctly sets the text color, andtintColor
andtrackTintColor
sets the bar (fill) & bar (unfilled) color, respectively. Tested on: Windows 10 Pro Windows Phone 10.0 (Microsoft Lumia 640 LTE) Appc Studio: 4.7.0.201606220541 Ti SDK: 5.4.0.v20160617074028 Appc NPM: 4.2.7-2 Appc Core: 5.4.0-18 Node: v4.4.4 *Closing Ticket.*