{ "id": "89908", "key": "TIMOB-8702", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-04-12T11:50:25.000+0000", "created": "2012-04-12T10:19:01.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [ { "id": "26169", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "110334", "key": "TIDOC-1044", "fields": { "summary": "APIDoc: Update color information on Titanium.UI", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T21:30:26.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": "h2. Problem\r\n\r\nWeb color names aqua, fushia, lime and maroon are not supported, despite them being included in the [HTML color names|http://en.wikipedia.org/wiki/Web_colors#HTML_color_names] standard, and also supposedly-supported according to the [Webcolor.m|https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/Webcolor.m] code.\r\n\r\nh2. Test case\r\n\r\nRun this code to test each color name in turn, by clicking the window.\r\n\r\n{code:lang=javascript|title=app.js}\r\n// According to the following test case:\r\n// Android does not currently support: brown\r\n// iOS does not currently support: aqua, fuchsia, lime, maroon\r\n\r\n// stripped for tableview background color still to be tested\r\n\r\nvar webcolor = [\r\n\t'black', 'gray', 'darkgray', 'lightgray', 'white', 'red', 'green', 'blue', 'cyan', 'yellow',\r\n\t'magenta', 'orange', 'purple', 'brown', 'transparent',\r\n\t'aqua', 'fuchsia', 'lime', 'maroon', 'pink', 'navy', 'silver', 'olive', 'teal'];\r\n\r\nvar webcolorPointer = 0;\r\n\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: webcolor[webcolorPointer],\r\n\texitOnClose: true,\r\n\tfullscreen: false,\r\n\tlayout: 'vertical',\r\n\ttitle: 'Webcolor Demo'\r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n\tbackgroundColor: 'white',\r\n\ttext: webcolor[webcolorPointer]\r\n});\r\nwebcolorPointer++;\r\n\r\nwin.add(label);\r\n\r\n// click window to iterate through color array\r\nwin.addEventListener('click', function(e){\r\n\te.source.backgroundColor = webcolor[webcolorPointer];\r\n\tlabel.text = webcolor[webcolorPointer];\r\n\twebcolorPointer++;\r\n\tif(webcolorPointer === webcolor.length){\r\n\t\twebcolorPointer = 0;\r\n\t}\r\n});\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: UI - webColor aqua, fuchsia, lime and maroon color names not supported", "creator": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "environment": "* Titanium Studio 1.8.2\r\n* iOS 5\r\n* iOS Simulator", "comment": { "comments": [ { "id": "190757", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Duplicate of TIMOB-8678", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-04-12T11:50:25.000+0000", "updated": "2012-04-12T11:50:25.000+0000" }, { "id": "410592", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T21:30:26.000+0000", "updated": "2017-03-09T21:30:26.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }