{ "id": "89906", "key": "TIMOB-8701", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15273", "description": "2013 Sprint 05 API", "name": "2013 Sprint 05 API", "archived": true, "released": true, "releaseDate": "2013-03-11" }, { "id": "14815", "description": "2013 Sprint 05", "name": "2013 Sprint 05", "archived": true, "released": true, "releaseDate": "2013-03-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-02-27T22:03:16.000+0000", "created": "2012-04-12T10:15:29.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "exalture", "module_window", "parity", "qe-testadded" ], "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": "26170", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "outwardIssue": { "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": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2013-06-19T10:22:34.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": "h2. Problem\r\n\r\nWeb color name brown is not supported, despite it being included in the [HTML color names|http://en.wikipedia.org/wiki/Web_colors#HTML_color_names] standard, and also supposedly-supported by iOS, 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. The color yellow is used when a name is not recognised.\r\n// iOS does not currently support: aqua, fuchsia, lime and maroon. The color black is used when a name is not recognised.\r\n\r\n// stripped for tableview background color still to be tested\r\n\r\nvar webcolor = [\r\n 'black', 'gray', 'darkgray', 'lightgray', 'white', 'red', 'green', 'blue', 'cyan', 'yellow',\r\n 'magenta', 'orange', 'purple', 'brown', 'transparent',\r\n '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 backgroundColor: webcolor[webcolorPointer],\r\n exitOnClose: true,\r\n fullscreen: false,\r\n layout: 'vertical',\r\n title: 'Webcolor Demo'\r\n});\r\n\r\nvar label = Ti.UI.createLabel({\r\n backgroundColor: 'white',\r\n text: 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 e.source.backgroundColor = webcolor[webcolorPointer];\r\n label.text = webcolor[webcolorPointer];\r\n webcolorPointer++;\r\n if(webcolorPointer === webcolor.length){\r\n webcolorPointer = 0;\r\n }\r\n});\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Color \"brown\" is 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 1.8.2\r\n* Android APIs 2.2\r\n* Android Emulator\r\n", "comment": { "comments": [ { "id": "239330", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "IOS definition\n+ (UIColor *)brownColor; // 0.6, 0.4, 0.2 RGB \n", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-02-21T22:44:01.000+0000", "updated": "2013-02-21T22:44:01.000+0000" }, { "id": "240016", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/3912", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-02-27T18:14:33.000+0000", "updated": "2013-02-27T18:14:33.000+0000" }, { "id": "241735", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Every color mentioned above is being displayed on the run including Brown color.\r\n\r\nVerified on:\r\nDevice : Google Nexus, Android Version: 4.1\r\nSDK version: 3.1.0.v20130311192922\r\nCLI version : 3.0.24\r\nOS : MAC OSX 10.7.5\r\nXCode : 4.5.1\r\n", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-03-12T11:52:18.000+0000", "updated": "2013-03-12T11:52:18.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }