{ "id": "159971", "key": "TIMOB-23338", "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": "17707", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-05-09T17:10:02.000+0000", "created": "2016-05-03T12:38:56.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-5.3.0" ], "versions": [ { "id": "17993", "description": "Release 5.2.2", "name": "Release 5.2.2", "archived": false, "released": true, "releaseDate": "2016-04-05" } ], "issuelinks": [], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2016-05-10T22:42:08.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": [], "description": "According to http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Button-property-color the color property should set the text color of a button. Currently it sets and overrides any previously set backgroundColor.\r\n\r\nExample:\r\n\r\nindex.xml\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nindex.tss\r\n{code}\r\n\".container\": {\r\n\tbackgroundColor:\"white\",\r\n\tlayout: 'vertical'\r\n}\r\n\r\n\"#btn\": {\r\n\twidth: Ti.UI.SIZE,\r\n\tbackgroundColor: \"blue\",\r\n\tcolor: \"red\"\r\n}\r\n\r\n\"#btn2\": {\r\n\twidth: Ti.UI.SIZE,\r\n\tbackgroundColor: \"blue\",\r\n}\r\n{code}\r\n\r\nindex.js\r\n{code}\r\nfunction doClick(e) {\r\n $.btn.color = \"blue\";\r\n}\r\n\r\nfunction doClick2(e) {\r\n $.btn2.color = \"yellow\";\r\n}\r\n\r\n$.index.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Windows: Ti.UI.Button - Color property sets background color instead of text color", "creator": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "subtasks": [], "reporter": { "name": "jonasbjurhult", "key": "jonasbjurhult", "displayName": "Jonas Bjurhult", "active": true, "timeZone": "Europe/Stockholm" }, "environment": "SDK: 5.4.0.v20160503001406", "closedSprints": [ { "id": 627, "state": "closed", "name": "2016 Sprint 10 SDK", "startDate": "2016-05-07T00:43:56.954Z", "endDate": "2016-05-21T00:43:00.000Z", "completeDate": "2016-05-23T02:06:04.349Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "384662", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\nI am able to reproduce this issue with given code and given step on Windows Phone. \r\n*Steps:*\r\n1. Create an alloy project with given code for Windows Phone.\r\n2. Build and run the app on Windows Phone.\r\n3. Click the first button. >> Background color of the button is changed to blue.\r\nCode says:\r\n{code}\r\nfunction doClick(e) {\r\n$.btn.color=\"blue\";\r\n}\r\n{code}\r\nAccording to documentation color property refers to text color of a Button. But in reality it is referring to background color of the button.\r\n4. Click the second button. >> Same thing happens.\r\nThanks \r\n\r\n*Environment*:\r\n\r\n*OS :* Microsoft Windows 8.1 Enterprise N\r\n*Device info:* Microsoft Lumia 640 (Windows Phone 8.1)\r\n*Node.js Version:* 0.12.7\r\n*npm Version:* 2.11.3\r\n*Titanium SDKs:* 5.4.0.v20160429102159\r\n*Java Development Kit Version:* 1.8.0_73\r\n*Titanium CLI Version:* 5.0.5\r\n*Appcelerator CLI Version:* 5.2.2\r\n*Appcelerator Studio:* 4.5.0", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-05-04T04:43:30.000+0000", "updated": "2016-05-04T04:43:30.000+0000" }, { "id": "385138", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/676", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-05-09T14:08:17.000+0000", "updated": "2016-05-09T14:08:17.000+0000" }, { "id": "385160", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Merged to 5_3_X, cherry-picked to master", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-05-09T17:10:02.000+0000", "updated": "2016-05-09T17:10:02.000+0000" }, { "id": "385161", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile_windows/pull/679", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-09T17:11:21.000+0000", "updated": "2016-05-09T17:11:21.000+0000" }, { "id": "385335", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed.\r\n\r\nTested on:\r\nNokia Lumia 928 (8.1) \r\nWindows Simulator (8.1) \r\nMicrosoft Lumia 640 (10) \r\nWindows Simulator (10)\r\nWindows 10 \r\nStudio: 4.6.0.201605030516 \r\nTi SDK: 5.3.0.v20160509143032 \r\nAppc NPM: 4.2.5-5 \r\nApp CLI: 5.3.0-44 \r\nNode v0.12.7\r\n\r\n*Closing Ticket.*", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-05-10T22:41:43.000+0000", "updated": "2016-05-10T22:41:43.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }