{ "id": "168452", "key": "TIMOB-24841", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-06-26T15:02:58.000+0000", "created": "2017-06-16T13:36:33.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "alertdialog", "qe-6.2.0", "tintColor" ], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-06-26T15:04:59.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Alert Dialog has had tintColor since iOS 8+:\r\n\r\n{code:java}\r\nUIAlertController *alertController = ....\r\n[alertController.view setTintColor:[UIColor greenColor]];\r\n{code}\r\n\r\nWould it possible to implement this in Titanium?", "attachment": [], "flagged": false, "summary": "iOS: Expose Alert Dialog TintColor", "creator": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "subtasks": [], "reporter": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "environment": null, "comment": { "comments": [ { "id": "422169", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "You can use the {{Ti.UI.setTintColor('green')}} method / computed property for setting a global tint-color already, but I see the point of using it for the alert specifically as well. I assume {{myAlert.tintColor = 'green'}} does not work?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-06-16T18:04:50.000+0000", "updated": "2017-06-16T18:04:50.000+0000" }, { "id": "422170", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/9150\r\n\r\nTest-Case:\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: 'Show Alert'\r\n});\r\n\r\nbtn.addEventListener('click', function() {\r\n var alert = Ti.UI.createAlertDialog({\r\n\t\ttitle: 'My Dialog',\r\n\t\tmessage: 'Hello World',\r\n\t\tbuttonNames: ['OK'],\r\n\t\ttintColor: 'red'\r\n\t});\r\n\talert.show();\r\n});\r\n\r\nwin.add(btn);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-06-16T18:27:25.000+0000", "updated": "2017-06-16T18:27:25.000+0000" }, { "id": "422171", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "body": "{code:java}\r\nmyAlert.tintColor = 'green'\r\n{code}\r\n\r\nconforms very well :)\r\n", "updateAuthor": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2017-06-16T18:31:17.000+0000", "updated": "2017-06-16T18:31:51.000+0000" }, { "id": "422732", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Approved! tintColor property for AlertDialog is now supported. Tested with both string & hex color values, as well as checking for errors if incorrect argument values are specified.\r\n\r\nTested On:\r\niPhone 7 10.3.2 Device & Simulator\r\nMac OS Sierra (10.12.5)\r\nTi SDK: 6.2.0.v20170626070527\r\nAppc NPM: 4.2.9\r\nApp CLI: 6.2.2\r\nXcode 8.3.3\r\nNode v4.6.0\r\n\r\nClosing ticket.", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2017-06-26T15:04:43.000+0000", "updated": "2017-06-26T15:04:43.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }