{ "id": "117489", "key": "ALOY-756", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2013-07-23T15:41:58.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "alloy", "app.tss", "styling" ], "versions": [ { "id": "15402", "description": "Alloy 1.2.0, concurrent with SDK 3.1.0", "name": "Alloy 1.2.0", "archived": false, "released": true, "releaseDate": "2013-08-15" } ], "issuelinks": [ { "id": "30352", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "117491", "key": "ALOY-755", "fields": { "summary": "Alloy dynamic styling: modify raw styles should affect new alloy controllers", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": null, "updated": "2018-03-07T22:25:57.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "In the new dynamic styling for alloy I miss the possibility to access global styles (those defined at app.tss)\r\n\r\nThe idea is to have access to raw styles defined at app.tss in the same way as controllers tss files.\r\n\r\nFor example, to access index raw styles we can do\r\n\r\n{code}\r\nrequire('alloy/styles/index');\r\n{code}\r\nWhich returns a sorted array of all styles defined at index.tss plus those styles inherited from app.tss and themes (if used)\r\n\r\nThe idea would be to have access also to app styles doing something like:\r\n{code}\r\nrequire('alloy/styles/app');\r\n{code}\r\n\r\n\r\nAccessing global styles can be useful to create new classes from the existing ones, but not for a specific component in a controller, but for generic reusable styles.\r\n\r\nAlso, if in future is possible to modify the raw styles array so it affects to all new alloy controllers created, modifying global styles makes much more sense than modifying specific controllers styles.\r\n\r\nDiscussion about this and some samples can be found at \r\n\r\nhttp://developer.appcelerator.com/question/155135/alloy-dynamic-styling-access-app-raw-style-and-edit-styles\r\n\r\n", "attachment": [], "flagged": false, "summary": "Alloy dynamic styling: access global app raw styles", "creator": { "name": "jaraen", "key": "jaraen", "displayName": "Javier Rayon", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "alloy 1.2", "comment": { "comments": [ { "id": "311813", "author": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "body": "I am interested in doing this as well. Any update? Being able to change the theme dynamically based on user settings is important to me.", "updateAuthor": { "name": "paul h", "key": "paul h", "displayName": "Paul Hamilton", "active": true, "timeZone": "America/Havana" }, "created": "2014-07-01T16:33:17.000+0000", "updated": "2014-07-01T16:33:17.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }