{ "id": "120841", "key": "TIMOB-15414", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "15699", "description": "2013 Sprint 21", "name": "2013 Sprint 21", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "15700", "description": "2013 Sprint 21 API", "name": "2013 Sprint 21 API", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "15708", "description": "2013 Sprint 23 API", "name": "2013 Sprint 23 API", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "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-11-13T23:40:33.000+0000", "created": "2013-10-05T00:39:39.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ios", "ios7", "module_navwindow", "navbar", "navigation", "navigationWindow", "qe-testadded" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [ { "id": "32623", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "121348", "key": "TIDOC-1315", "fields": { "summary": "APIDoc: Document new titleAttributes property", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-11-30T00:12:02.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": "We should allow users to set the Window titleColor without having to create a custom Label and setting it as the titleControl since you can do this natively (at least on Interface Builder).\r\n\r\nIdeally, beside the navTintColor and the tintColor window parameters we should have a parameter called titleColor where the user can define the color for the title text on the NavBar.\r\n\r\nAlso we should map titleShadowColor, titleShadowOffset and titleFont for setting a title shadow color, offset and font as those are all available natively on IB.\r\n\r\nThose are all supported natively on the Interface Builder and should be mapped to Ti.\r\n\r\n", "attachment": [ { "id": "42972", "filename": "Screen Shot 2013-10-04 at 9.39.16 PM.png", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-10-05T00:39:39.000+0000", "size": 51808, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS7: Allow users to set the Title Color of the Windows", "creator": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "subtasks": [], "reporter": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "environment": "iOS7\r\nTi SDK 3.1.3.GA", "comment": { "comments": [ { "id": "275472", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "You can customize font, shadow and color of title in navBar\r\nTest Case\r\n{code}\r\nvar attributes = [\r\n {color:'red'},\r\n {font:{fontFamily:'AvenirNextCondensed-DemiBoldItalic',fontSize:18}},\r\n {shadow:{color:'green',offset:{width:1,height:1}}},\r\n {color:'red',font:{fontFamily:'AvenirNextCondensed-DemiBoldItalic',fontSize:18},shadow:{color:'green',offset:{width:1,height:1}}}\r\n]\r\n\r\n\r\nvar counter = 0;\r\n\r\nfunction genWindow(nav)\r\n{\r\n var index = counter % 5;\r\n counter = counter + 1;\r\n var win = Ti.UI.createWindow({\r\n title:'Custom Title',\r\n backButtonTitle:'Back',\r\n backgroundColor:'white'\r\n })\r\n\r\n var view = Ti.UI.createView({\r\n height:Ti.UI.SIZE,\r\n layout:'vertical'\r\n })\r\n\r\n var label = Ti.UI.createLabel({top:5});\r\n view.add(label);\r\n var btn = Ti.UI.createButton({title:'NEXT',top:5});\r\n view.add(btn)\r\n if (index < 4) {\r\n win.titleAttributes = attributes[index];\r\n label.text = 'Attributes:\\n'+JSON.stringify(attributes[index]);\r\n btn.shadowColor = 'magenta';\r\n btn.shadowOffset = {x:-1,y:1};\r\n } else {\r\n label.text = 'No Attributes';\r\n }\r\n\r\n \r\n\r\n btn.addEventListener('click',function(e){\r\n nav.openWindow(genWindow(nav));\r\n })\r\n\r\n win.add(view);\r\n\r\n win.addEventListener('close',function(){\r\n counter = counter - 1;\r\n })\r\n\r\n return win\r\n\r\n}\r\n\r\nvar nav = Ti.UI.iOS.createNavigationWindow({})\r\nnav.window = genWindow(nav);\r\nnav.open();\r\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-10-17T19:45:22.000+0000", "updated": "2013-10-17T21:51:18.000+0000" }, { "id": "275474", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending against master\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4801", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-10-17T19:52:14.000+0000", "updated": "2013-10-17T19:52:14.000+0000" }, { "id": "275909", "author": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Tested with :\r\nOSX: 10.8.5\r\nXcode:5.0\r\nAppcelerator Studio: 3.2.0.201310181700\r\nSDK:3.2.0.v20131018154951\r\nacs:1.0.7\r\nalloy:1.2.2\r\nnpm:1.3.2\r\ntitanium:3.2.0\r\ntitanium-code-processo:1.0.3\r\nDevice: iPod touch 2 (v iOS7)", "updateAuthor": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-10-21T10:44:17.000+0000", "updated": "2013-10-21T10:44:17.000+0000" }, { "id": "279442", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This PR has caused a regression. Reopening to fix", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-13T23:19:11.000+0000", "updated": "2013-11-13T23:19:11.000+0000" }, { "id": "279443", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Test case for regression. Note that the default back button title does not show. \n{code}\n\nvar counter = 0;\n\nfunction genWindow(root, nav) {\n var win = Ti.UI.createWindow({\n backgroundColor:'white',\n layout:'vertical',\n winCounter:counter\n })\n\n var b1 = Ti.UI.createButton({top:40,title:'NEXT'})\n win.add(b1);\n\n b1.addEventListener('click',function(e){\n nav.openWindow(genWindow(false,nav));\n })\n\n if (root == false) {\n var b2 = Ti.UI.createButton({title:'CLOSE'});\n win.add(b2);\n\n b2.addEventListener('click',function(e){\n win.close();\n })\n }\n\n win.addEventListener('open',function(e){\n Ti.API.info('OPEN FIRED '+e.source.winCounter);\n counter = counter + 1;\n })\n win.addEventListener('close',function(e){\n Ti.API.info('CLOSE FIRED '+e.source.winCounter);\n counter = counter - 1;\n })\n win.addEventListener('focus',function(e){\n Ti.API.info('FOCUS FIRED '+e.source.winCounter);\n })\n win.addEventListener('blur',function(e){\n Ti.API.info('BLUR FIRED '+e.source.winCounter);\n })\n\n\n return win;\n}\n\n\n\nvar nav1 = Ti.UI.iOS.createNavigationWindow({})\n\nvar root = genWindow(true,nav1);\n\nnav1.window = root;\n\nnav1.open();\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-13T23:20:46.000+0000", "updated": "2013-11-13T23:20:46.000+0000" }, { "id": "279444", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending for regression\nhttps://github.com/appcelerator/titanium_mobile/pull/4962", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-13T23:22:23.000+0000", "updated": "2013-11-13T23:22:23.000+0000" }, { "id": "281229", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Verified the window.title color can be set and the regression test case; the default back button title shows up now.\n\nTested on:\n\nTitanium Studio, build: 3.2.0.201311221859\nSDK build: 3.2.0.v20131122172908\nCLI: 3.2.0-alpha\nAlloy: 1.3.0-alpha6\nXcode: 5.0.2\nDevice: iphone 5 (6.1.3), iphone 5 (7.0.2)\n", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-25T21:36:12.000+0000", "updated": "2013-11-25T21:36:12.000+0000" }, { "id": "334072", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Broken in the latest 3.4.2 Build (3.4.2.v20141125154126). The color property is not honored in the titleAttribute.\r\n\r\nExpected behaviour: http://abload.de/image.php?img=expected4dzns.png\r\nActual behaviour: http://abload.de/image.php?img=resultrqzzi.png\r\n\r\nWould be great to be fixed in the 3.4.2.GA, thank you!.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-11-29T21:31:24.000+0000", "updated": "2014-11-29T21:31:24.000+0000" }, { "id": "334073", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Correction: Everything perfect, using the color-property in the titleAttributes object: \r\n\r\ntitleAttributes: {\r\n color: \"#fff\"\r\n}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-11-30T00:12:02.000+0000", "updated": "2014-11-30T00:12:02.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }