{ "id": "175675", "key": "TIMOB-28211", "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": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" } ], "resolution": null, "resolutiondate": null, "created": "2020-10-28T02:50:47.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-11-20T16:39:29.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": "When a button is used in window for leftNavBar or rightNavBar, the color property does not work.\r\n\r\nSteps to Reproduce:\r\n1. Create a titanium mobile app using the code below\r\n2. Run on iOS device/sim\r\n3. On the Red Window, click on the button \"Open Blue Window\"\r\n4. Check the Left and Right navbar buttons in the blue window\r\n\r\nActual Result:\r\nThese buttons show the blue text color instead of the color assigned.\r\n\r\nExpected Result:\r\nThe buttons used in navbar should show the text color assigned as color property.\r\n\r\n{code:js}\r\nvar win2 = Titanium.UI.createWindow({\r\n backgroundColor: 'red',\r\n title: 'Red Window'\r\n});\r\n\r\nvar win1 = Titanium.UI.createNavigationWindow({\r\n window: win2\r\n});\r\nvar lnv = Titanium.UI.createButton({\r\n title: 'Left',\r\n color: 'yellow'\r\n});\r\nlnv.addEventListener('click', function(){\r\n win1.closeWindow(win3, {animated:false}); \r\n});\r\nvar rightView = Ti.UI.createView();\r\nvar rnv = Titanium.UI.createButton({\r\n title: 'Right',\r\n color:'red'\r\n});\r\nrnv.addEventListener('click', function(){\r\n win1.closeWindow(win3, {animated:false}); \r\n});\r\nvar win3 = Titanium.UI.createWindow({\r\n backgroundColor: 'blue',\r\n title: 'Blue Window',\r\n leftNavButton:lnv,\r\n rightNavButton:rnv \r\n});\r\n\r\nvar button = Titanium.UI.createButton({\r\n title: 'Open Blue Window',\r\n color: 'black'\r\n});\r\nbutton.addEventListener('click', function(){\r\n win1.openWindow(win3, {animated:true});\r\n});\r\n\r\nwin2.add(button);\r\nvar button2 = Titanium.UI.createButton({\r\n title: 'Close Blue Window'\r\n});\r\nbutton2.addEventListener('click', function(){\r\n win1.closeWindow(win3, {animated:false});\r\n});\r\n\r\nwin3.add(button2);\r\nwin1.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: The color property of Ti.UI.Button does not work when used in navbar", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS: 10.15.4\r\nSDK: 9.2.1.GA\r\nAppc CLI: 8.1.1\r\nJDK: 11.0.4\r\nNode: 10.17.0\r\nStudio: 6.0.0.202005141803\r\nXcode: 12.0.1", "closedSprints": [ { "id": 1209, "state": "closed", "name": "2020 Sprint 22", "startDate": "2020-10-27T02:33:00.000Z", "endDate": "2020-11-07T02:33:00.000Z", "completeDate": "2020-11-06T17:45:42.610Z", "originBoardId": 114 }, { "id": 1210, "state": "closed", "name": "2020 Sprint 23", "startDate": "2020-11-09T17:49:00.000Z", "endDate": "2020-11-20T17:49:00.000Z", "completeDate": "2020-11-20T17:46:00.641Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "457368", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "In the navbar, instead of using a button, if we use a label with colored text or use a view having a button with colored text shows up fine.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-28T02:53:00.000+0000", "updated": "2020-10-28T02:53:00.000+0000" }, { "id": "457372", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Buttons use the \"tintColor\" property for coloring.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-10-28T13:52:59.000+0000", "updated": "2020-10-28T13:52:59.000+0000" }, { "id": "457431", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR. - https://github.com/appcelerator/titanium_mobile/pull/12245\r\n\r\nTest Case -\r\n\r\n{code:java}\r\nvar lnv = Titanium.UI.createButton({\r\n title: 'Left',\r\n color: 'yellow',\r\n tintColor:'green' // color should have priority\r\n});\r\n\r\nvar rnv = Titanium.UI.createButton({\r\n title: 'Right',\r\n tintColor:'green'\r\n});\r\n\r\nvar win3 = Titanium.UI.createWindow({\r\n backgroundColor: 'blue',\r\n title: 'Blue Window',\r\n leftNavButton:lnv,\r\n rightNavButton:rnv \r\n});\r\n\r\nvar win1 = Titanium.UI.createNavigationWindow({\r\n window: win3\r\n});\r\n\r\nwin1.open();\r\n{code}\r\n", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-11-04T01:06:20.000+0000", "updated": "2020-11-05T01:04:30.000+0000" }, { "id": "457648", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting for Jenkins build.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-11-19T21:24:55.000+0000", "updated": "2020-11-19T21:24:55.000+0000" }, { "id": "457660", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master. Backport PR for 9_3_X is merged as well.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-11-20T16:04:15.000+0000", "updated": "2020-11-20T16:39:26.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }