{ "id": "117276", "key": "TIMOB-14583", "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": [], "resolution": null, "resolutiondate": null, "created": "2013-07-17T06:11:48.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "backgroundColor", "performance", "transparency", "transparent" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:14.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": [ { "id": "12305", "name": "Core", "description": "Central component of the Platform (outside of Tooling, or platform specific implementation details)" } ], "description": "By default view backgrounds are transparent. Often developers only set a {{backgroundColor}} on the window and leave the children (specially labels) as they are, since the appearance is already how they wanted it to be.\r\n\r\nBut of course having all these transparent views *does* result in a less performant rendering of the views because the OS has to calculate the effective background shining through.\r\n\r\nSo, as a best practice, developers are advised to always set a backgroundColor on views, even if it's the same as their parent's.\r\n\r\nHowever, doing so and then having to change the backgroundColor means you have to change it on all these views and not just the window, like without best practice.\r\n\r\nSo, my suggestion is to introduce a new \"inherit\" value for the {{backgroundColor}} property, which should map to the closest set (can also be transparent, however it *must* be set, not default) background color of it's parents.\r\n\r\nThis way, changing a window's backgroundColor only requires 1 property to change while still benefitting from increased performance because of less transparent views.\r\n", "attachment": [], "flagged": false, "summary": "Add \"inherit\" as backgroundColor value", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "Any", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }