{ "id": "155113", "key": "TIMOB-20467", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-21T04:12:44.000+0000", "created": "2016-02-24T19:51:51.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "defect", "parity" ], "versions": [ { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "issuelinks": [ { "id": "51145", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "155937", "key": "TIMOB-20621", "fields": { "summary": "Windows: Titanium.UI.ProgressBar 'color' property has no effect on text", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "50706", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "151524", "key": "TIMOB-19588", "fields": { "summary": "Android: Expose color property of ProgressBar", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2016-06-10T21:57:07.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "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.", "attachment": [], "flagged": false, "summary": "Android: Titanium.UI.ProgressBar 'color' property has no effect on text", "creator": { "name": "g4be", "key": "g4be", "displayName": "Gabriel Mario Aguirre", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "g4be", "key": "g4be", "displayName": "Gabriel Mario Aguirre", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OSX 10.11.1\r\nSDK 5.1.2.GA\r\nAndroid 4.0+", "closedSprints": [ { "id": 618, "state": "closed", "name": "2016 Sprint 08 SDK", "startDate": "2016-04-09T00:30:18.262Z", "endDate": "2016-04-23T00:30:00.000Z", "completeDate": "2016-04-25T02:38:28.511Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "377846", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "In the documentation the color property is described as below:\r\n{code}\r\ncolor : String\r\nColor of the progress bar text, as a color name or hex triplet.\r\n{code}\r\n\r\nBut changing the color property changes the color of the bar not the text and the text color remains white. In the following code sample color property of the \"Titanium.UI.ProgressBar\" is set to blue. The bar color then becomes blue but the text color of the message remains while.\r\n{code}\r\nvar pb = Ti.UI.createProgressBar({\r\n top: 25,\r\n width: 250,\r\n min: 0,\r\n max: 10,\r\n value: 0,\r\n color: 'blue',\r\n message: 'Downloading 0 of 10',\r\n font: {fontSize: 14, fontWeight: 'bold'},\r\n style: Titanium.UI.iPhone.ProgressBarStyle.PLAIN,\r\n});\r\n{code}\r\n*Environment*:\r\n\r\n*Device info:* Nexux7 (android 6.0.1)\r\n*Node.js Version:* 0.12.7\r\n*npm Version:* 2.11.3\r\n*Titanium SDKs:* 5.2.0.v20160220080449 and 5.1.2.GA\r\n*Java Development Kit Version:* 1.8.0_73\r\n*Titanium CLI Version:* 5.0.5\r\n\r\n\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-02-25T05:10:06.000+0000", "updated": "2016-02-25T18:15:06.000+0000" }, { "id": "377952", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Seems that documentation was incorrectly done for this.\r\nAs per TIMOB-19588, the color property exposed was for the bar.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-02-26T03:08:07.000+0000", "updated": "2016-02-26T03:08:07.000+0000" }, { "id": "380557", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is more of a parity issue. please check if we can make android and ios consistent.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-24T00:04:07.000+0000", "updated": "2016-03-24T00:04:07.000+0000" }, { "id": "380558", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "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.\r\nOn 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\r\n\r\nIdeally 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.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-03-24T00:05:26.000+0000", "updated": "2016-03-24T00:10:12.000+0000" }, { "id": "383263", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/7953\r\nThis PR changes text color with {{color}} property - which is as per documentation. \r\n\r\nCan use the following app.js for testing\r\n\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n \r\nvar win1 = Titanium.UI.createWindow({\r\n title:'Tab 1',\r\n backgroundColor:'white',\r\n fullscreen: true\r\n});\r\n\r\nvar pb = Ti.UI.createProgressBar({\r\n top: 25,\r\n width: 250,\r\n min: 0,\r\n max: 10,\r\n value: 0,\r\n color: 'blue',\r\n message: 'Downloading 0 of 10',\r\n style: Titanium.UI.iPhone.ProgressBarStyle.PLAIN\r\n});\r\n\r\nwin1.add(pb);\r\nwin1.open();\r\n{code}", "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-04-20T07:26:24.000+0000", "updated": "2016-04-20T07:26:24.000+0000" }, { "id": "383462", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR merged.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-04-21T04:12:55.000+0000", "updated": "2016-04-21T04:12:55.000+0000" }, { "id": "388106", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\n{{color}} property now changes the color of the text as well.\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.6.0.201605201934\r\nTi SDK : 5.4.0.v20160608165242\r\nTi CLI : 5.0.8\r\nAlloy : 1.8.7\r\nMAC El Capitan : 10.11.4\r\nAppc NPM : 4.2.7-2\r\nAppc CLI : 5.4.0-11\r\nNode: 4.4.4\r\nNexus 6 - Android 6.0.0", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-06-10T21:55:53.000+0000", "updated": "2016-06-10T21:55:53.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }