{ "id": "119178", "key": "TIMOB-14983", "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": "15646", "description": "2013 Sprint 18", "name": "2013 Sprint 18", "archived": true, "released": true, "releaseDate": "2013-09-06" }, { "id": "15690", "description": "2013 Sprint 18 API", "name": "2013 Sprint 18 API", "archived": true, "released": true, "releaseDate": "2013-09-06" }, { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-09-04T17:26:49.000+0000", "created": "2013-08-28T13:09:32.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ios7", "module_navwindow", "qe-testadded", "triage" ], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-04-21T09:06:42.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 description\r\nThe barColor property is not working properly on iOS7. Tested with different SDK versions results are different, but they never seem correct. Everything works fine on iOS 6.1.\r\n\r\nh2. Code to reproduce the issue\r\n{code}\r\nvar first = Ti.UI.createWindow({\r\n backgroundColor:\"white\",\r\n barColor: \"black\",\r\n title:\"My App\"\r\n});\r\n\r\nvar navGroup = Ti.UI.iPhone.createNavigationGroup({\r\n window: first\r\n});\r\n\r\nvar main = Ti.UI.createWindow();\r\n\r\nmain.add(navGroup);\r\nmain.open();\r\n{code}\r\n\r\nh2. Result\r\nExpected: the bar should be black, text should be shown properly\r\nActual result: see screenshots.", "attachment": [ { "id": "42065", "filename": "iOS6.png", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-09-02T17:49:29.000+0000", "size": 25301, "mimeType": "image/png" }, { "id": "42066", "filename": "iOS7.png", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-09-02T17:49:29.000+0000", "size": 22632, "mimeType": "image/png" }, { "id": "42077", "filename": "iOS7-SDK3.1.3.v20130902103448-XCode5-DP6.png", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-09-03T16:52:38.000+0000", "size": 20586, "mimeType": "image/png" }, { "id": "42079", "filename": "iOS Simulator Screen shot Sep 3, 2013 10.36.09 AM.png", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-03T17:36:45.000+0000", "size": 16016, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS7: barColor does not work properly", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": "iOS7\r\nSDK 3.1.2\r\nSDK 3.2.0.v20130827181855", "comment": { "comments": [ { "id": "268572", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~dcassenti] Is this not a duplicate of one of these issues? TIMOB-14287 or TIMOB-14945?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-28T14:49:32.000+0000", "updated": "2013-08-28T14:49:32.000+0000" }, { "id": "269076", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Try this to see behavior of navTintColor. \nTo get solid black set translucent to false on window. (Default true on IOS7)\n{code}\nvar label = Ti.UI.createLabel({\n text:'My App2',\n color:'white'\n})\n\nvar first = Ti.UI.createWindow({\n backgroundColor:\"white\",\n barColor: \"black\",\n navTintColor:'white',\n titleControl:label\n});\n \nvar navGroup = Ti.UI.iPhone.createNavigationGroup({\n window: first\n});\n \nvar main = Ti.UI.createWindow();\n \nmain.add(navGroup);\nmain.open();\n\nvar btn = Ti.UI.createButton({\n title:'PUSH'\n})\n\nvar second = Ti.UI.createWindow({\n backgroundColor:\"white\",\n barColor: \"black\",\n navTintColor:'white',\n title:\"Second\"\n});\n\nbtn.addEventListener('click',function(){\n navGroup.push(second);\n})\n\nfirst.add(btn);\n{code}\n\n", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-08-30T18:27:32.000+0000", "updated": "2013-08-30T18:27:32.000+0000" }, { "id": "269287", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "From my brief read of the Apple docs, it would seem that we would need to be altering the UIStatusBarStyle constant to specify whether the status bar content should be dark (UIStatusBarStyleDefault) or light (UIStatusBarStyleLightContent):\n\n* UIStatusBarStyleDefault displays dark content. Use when light content is behind the status bar. \n* UIStatusBarStyleLightContent displays light content. Use when dark content is behind the status bar. \n", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-03T16:35:58.000+0000", "updated": "2013-09-03T16:35:58.000+0000" }, { "id": "269294", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "Downloaded the latest SDK and XCode, same result as before. In particular:\r\n\r\nXCode 5 DP6\r\niOS 7 beta 6\r\nSDK 3.1.3.v20130902103448\r\n\r\n[~ingo] Is this the expected behavior? I don't see a good result on top (black text on dark gray background), and the navigation bar is dark gray.", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-09-03T16:52:38.000+0000", "updated": "2013-09-03T16:52:38.000+0000" }, { "id": "269308", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "ok, IOS7 has removed all gradient effect. Not us APPLE has done so.\n\nAbout the dark gray Vs Black, as said before, set translucent to false.\n\nAttaching screenshot with translucent false.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-09-03T17:36:53.000+0000", "updated": "2013-09-03T17:36:53.000+0000" }, { "id": "269311", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~vduggal], agreed. But how about making the status bar text white?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-03T17:51:05.000+0000", "updated": "2013-09-03T17:51:05.000+0000" }, { "id": "269419", "author": { "name": "sghosh", "key": "sghosh", "displayName": "Sid Ghosh", "active": true, "timeZone": "America/New_York" }, "body": "Team,\n\nAny update on this issue ?\n\nSid", "updateAuthor": { "name": "sghosh", "key": "sghosh", "displayName": "Sid Ghosh", "active": true, "timeZone": "America/New_York" }, "created": "2013-09-04T01:19:05.000+0000", "updated": "2013-09-04T01:19:05.000+0000" }, { "id": "269528", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "TiUIPhoneStatusBar is the property you want to set to change the color.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-04T18:23:31.000+0000", "updated": "2013-09-04T18:23:31.000+0000" }, { "id": "270275", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fixed with:\r\n\r\nAppc Studio: 3.1.3.201309072408\r\nSdk:3.1.3.v20130908095038\r\nCLI version : 3.1.2\r\nAlloy : 1.2.2-beta\r\nMAC OSX: 10.8.4\r\nXCode : 5beta6\r\nDevice: Iphone5(v7)\r\n\r\ncode used to verify the fix was \r\n{code}\r\nvar label = Ti.UI.createLabel({\r\n text:'My App2',\r\n color:'white'\r\n});\r\n \r\nvar first = Ti.UI.createWindow({\r\n backgroundColor:\"white\",\r\n barColor: \"black\",\r\n translucent:false,\r\n navTintColor:'white',\r\n titleControl:label\r\n});\r\n \r\nvar navGroup = Ti.UI.iPhone.createNavigationGroup({\r\n window: first\r\n});\r\n \r\nvar main = Ti.UI.createWindow();\r\n \r\nmain.add(navGroup);\r\nmain.open();\r\n \r\nvar btn = Ti.UI.createButton({\r\n title:'PUSH'\r\n});\r\n \r\nvar second = Ti.UI.createWindow({\r\n backgroundColor:\"white\",\r\n barColor: \"black\",\r\n navTintColor:'white',\r\n title:\"Second\"\r\n});\r\n \r\nbtn.addEventListener('click',function(){\r\n navGroup.push(second);\r\n});\r\n \r\nfirst.add(btn);\r\nmain.open();\r\n{code}", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-09-09T08:14:41.000+0000", "updated": "2013-09-09T08:14:41.000+0000" } ], "maxResults": 19, "total": 19, "startAt": 0 } } }