{ "id": "174988", "key": "TIMOB-27881", "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": "21018", "name": "Release 9.0.2", "archived": false, "released": true, "releaseDate": "2020-05-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-05-14T14:33:28.000+0000", "created": "2020-05-05T18:15:58.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [ { "id": "58355", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "174633", "key": "TIMOB-27721", "fields": { "summary": "Android: Ti.UI.ImageView#tintColor is multiplied, not replaced (like iOS)", "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 } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-05-14T14:33:28.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": "- {{Ti.UI.ImageView.tintColor}} fails to apply the defined color to the {{ImageView}}\r\n\r\n*TEST CASE*\r\n{code:js}\r\nconst win = Ti.UI.createWindow({ backgroundColor: 'white' });\r\nconst img = Ti.UI.createImageView({\r\n\twidth: '80%',\r\n\timage: 'https://about.gitlab.com/images/press/logo/png/gitlab-icon-1-color-black-rgb.png',\r\n\ttintColor: 'red'\r\n});\r\n\r\nwin.add(img);\r\nwin.open();\r\n{code}\r\n\r\n*EXPECTED*\r\n- Image should tint to defined color (red).\r\n\r\n*ACTUAL*\r\n- Image does not tint to defined color and remains black.", "attachment": [ { "id": "67356", "filename": "Screen Shot 2020-05-06 at 1.49.07 PM.png", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-05-06T17:49:30.000+0000", "size": 17690, "mimeType": "image/png" }, { "id": "67357", "filename": "Screen Shot 2020-05-06 at 2.00.13 PM.png", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-05-06T18:00:41.000+0000", "size": 36035, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: ImageView tintColor has no effect", "creator": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1194, "state": "closed", "name": "2020 Sprint 9", "startDate": "2020-04-24T17:09:51.572Z", "endDate": "2020-05-08T17:09:00.000Z", "completeDate": "2020-05-08T15:40:07.869Z", "originBoardId": 114 }, { "id": 1195, "state": "closed", "name": "2020 Sprint 10", "startDate": "2020-05-08T16:37:58.282Z", "endDate": "2020-05-22T16:37:00.000Z", "completeDate": "2020-05-21T15:26:11.089Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "455371", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/11690", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-05T18:21:09.000+0000", "updated": "2020-05-05T18:21:09.000+0000" }, { "id": "455373", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We need to double check iOS' behavior. I'm pretty sure iOS's tint feature does a color \"fill\" in all non-transparent pixels. As in it replaces the original RGB values with the tint color and retains the alpha (or possibly multiples the alpha channels together).", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-05T22:09:38.000+0000", "updated": "2020-05-05T22:09:38.000+0000" }, { "id": "455384", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "For reference, here's what iOS looks like for this code sample:\r\n !Screen Shot 2020-05-06 at 1.49.07 PM.png|thumbnail! ", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-05-06T17:49:49.000+0000", "updated": "2020-05-06T17:49:49.000+0000" }, { "id": "455385", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "It'd be nice to have some pre-defined images with/without alpha, including with segments with partial translucency so we could easily compare originals versus expectations here. iOS uses UIImageRenderingModeAlwaysTemplate on the original image (the gitlab icon) - which the docs say ignores the color info and applies tint over it. So, I assume the color doesn't really matter but the alpha values do for the input image.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-05-06T17:57:45.000+0000", "updated": "2020-05-06T17:57:45.000+0000" }, { "id": "455386", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Here's an image with full to partial transparency in a radial gradient: https://pngimage.net/wp-content/uploads/2018/06/png-partial-transparency-2.png - which on iOS looks like this (with the above sample modified to point to the new image):\r\n\r\n !Screen Shot 2020-05-06 at 2.00.13 PM.png|thumbnail! ", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-05-06T18:00:43.000+0000", "updated": "2020-05-06T18:00:43.000+0000" }, { "id": "455387", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have mask images we can use in the \"MaskedImage.zip\" project attached to [TIMOB-17363].\r\n\r\nI created all of the images... except for \"MaskCamera.png\" and \"MaskCircleLock.png\" which came from the Android SDK and are Apache licensed.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-06T18:11:37.000+0000", "updated": "2020-05-06T18:11:37.000+0000" }, { "id": "455416", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "9_0_X: https://github.com/appcelerator/titanium_mobile/pull/11696", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-08T22:00:30.000+0000", "updated": "2020-05-08T22:00:30.000+0000" }, { "id": "455432", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, waiting on Jenkins build for master and 9_0_X.", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-11T14:42:17.000+0000", "updated": "2020-05-11T14:42:17.000+0000" }, { "id": "455433", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master for 9.1.0 target, 9_0_X for 9.0.2 target.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-05-11T17:16:01.000+0000", "updated": "2020-05-11T17:16:01.000+0000" }, { "id": "455458", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket.* Fix verified in SDK version 9.1.0.v20200506102029 and 9.0.2.v20200511101656 \r\n\r\n*Test and other information can be found at:*\r\nmaster: https://github.com/appcelerator/titanium_mobile/pull/11690\r\n9_0_X: https://github.com/appcelerator/titanium_mobile/pull/11696\r\n\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-05-14T14:33:22.000+0000", "updated": "2020-05-14T14:33:22.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }