{ "id": "161118", "key": "TIMOB-23531", "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": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-06-28T12:18:55.000+0000", "created": "2016-06-15T22:29:05.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-5.4.0" ], "versions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [ { "id": "52048", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "159411", "key": "TIMOB-23276", "fields": { "summary": "Windows: Unable to change titleColor/activeColor of Ti.UI.Tab", "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": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-09-06T13:53: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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "The currently viewed tab in an app will have the tab title highlighted, when switching the tabs, the current viewed tab highlight does not change appropriately.\r\n\r\nh2. TEST CODE\r\n{code:java}\r\n\r\n// create tab group\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n \r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({\r\n title: 'Tab 1',\r\n backgroundColor: '#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({\r\n icon: 'KS_nav_views.png',\r\n title: 'Tab 1',\r\n window: win1\r\n});\r\n \r\nvar label1 = Titanium.UI.createLabel({\r\n color: '#999',\r\n text: 'I am Window 1',\r\n font: { fontSize: 20, fontFamily: 'Helvetica Neue' },\r\n textAlign: 'center',\r\n width: 'auto'\r\n});\r\n \r\nwin1.add(label1);\r\n \r\n//\r\n// create controls tab and root window\r\n//\r\nvar win2 = Titanium.UI.createWindow({\r\n title: 'Tab 2',\r\n backgroundColor: '#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({\r\n icon: 'KS_nav_ui.png',\r\n title: 'Tab 2',\r\n window: win2\r\n});\r\n \r\nvar label2 = Titanium.UI.createLabel({\r\n color: '#999',\r\n text: 'I am Window 2',\r\n font: { fontSize: 20, fontFamily: 'Helvetica Neue' },\r\n textAlign: 'center',\r\n width: 'auto'\r\n});\r\n \r\nwin2.add(label2);\r\n \r\n//\r\n// add tabs\r\n//\r\ntabGroup.addTab(tab1);\r\ntabGroup.addTab(tab2);\r\n \r\n// open tab group\r\ntabGroup.open();\r\n{code}\r\n\r\n\r\nh2. Steps to Reproduce\r\n1. Create a new classic mobile project.\r\n2. Apply Test Code to app.js file.\r\n3. Launch App.\r\n4. Click on tab 1, then click tab 2.\r\n\r\nh2. Expected Result\r\n\r\nCurrently Viewed tab should have the title highlighted.\r\n\r\nh2. Actual Result\r\n\r\nTab 1 is constantly highlighted despite the selected tab.", "attachment": [], "flagged": false, "summary": "Windows: Tab title color is not changed on selection", "creator": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "environment": "Tested on: \r\nWindows 10 Pro \r\nWindows Phone 10.0 (Microsoft Lumia 640 LTE) \r\nAppc Studio: 4.6.0.201605201934\r\nTi SDK: 5.4.0.v20160608165242\r\nAppc NPM: 4.2.7-2\r\nAppc Core: 5.4.0-15\r\nNode: v4.4.5", "closedSprints": [ { "id": 649, "state": "closed", "name": "2016 Sprint 13 SDK", "startDate": "2016-06-18T00:25:17.303Z", "endDate": "2016-07-02T00:25:00.000Z", "completeDate": "2016-07-04T04:25:16.889Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "388542", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Confirmed that this is not happening on Windows Phone 8.1 even we use same native component ({{Windows::UI::Xaml::Controls::PivotItem}}). I will check to see if this is native behavior or not.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-06-17T09:56:59.000+0000", "updated": "2016-06-17T09:58:11.000+0000" }, { "id": "388620", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "ok confirmed that the Pivot component itself works fine on native app. ([Pivot sample|https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/XamlPivot]) so root cause should be somewhere in Titanium. Started working on it.", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-06-20T02:29:55.000+0000", "updated": "2016-06-20T02:29:55.000+0000" }, { "id": "388644", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/747", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-06-20T13:15:50.000+0000", "updated": "2016-06-20T13:15:50.000+0000" }, { "id": "395390", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nOS: Microsoft Windows 10 Pro 10.0.14393\r\nAppc core: 6.0.0-38\r\nAppc NPM: 4.2.8-6\r\nTi SDK: 6.0.0.v20160904203840\r\nLumia 930: 10.0\r\nLumia 520: 8.1\r\n\r\nTab title color is now changed on selection, defaulting to white for active and grey for inactive or the colors specified using activeTitleColor or titleColor\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-09-06T13:53:34.000+0000", "updated": "2016-09-06T13:53:34.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }