{ "id": "173841", "key": "TIMOB-27209", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "20827", "name": "Release 8.2.0", "archived": false, "released": true, "releaseDate": "2019-09-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-09-02T10:31:34.000+0000", "created": "2019-07-07T15:45:55.000+0000", "epic": { "id": 173691, "key": "TIMOB-27114", "name": "Support iOS 13", "summary": "iOS: Support iOS 13 and Xcode 11", "color": { "key": "color_3" }, "done": false }, "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [ { "id": "57850", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "174203", "key": "TIMOB-27501", "fields": { "summary": "Android: Be able to determine dark / light theme, as well as changes on it", "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": "Critical", "id": "1" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "59076", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "175940", "key": "TIMOB-28309", "fields": { "summary": "Ti.UI.Window Test Suite: Titanium.UI.Window Acceptance TIMOB-27209 iOS Only", "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": "None", "id": "6" }, "issuetype": { "id": "10100", "description": "This Issue Type is used to create Zephyr Test within Jira.", "name": "Test", "subtask": false } } } } ], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-01-06T08:42:47.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": "A developer should be able to check the current userInterfaceStyle, e.g. dark mode vs light mode.", "attachment": [], "flagged": false, "summary": "iOS: Be able to determine dark / light mode, as well as changes on it", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 1161, "state": "closed", "name": "2019 Sprint 18", "startDate": "2019-08-26T21:46:26.269Z", "endDate": "2019-09-08T21:46:00.000Z", "completeDate": "2019-09-09T20:39:58.761Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "449630", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Pull: https://github.com/appcelerator/titanium_mobile/pull/11031\r\n\r\nTest-Case:\r\n{code:js}\r\n\r\nvar currentStyle = Ti.App.iOS.userInterfaceStyle;\r\n\r\nconsole.log('Initial style:' + formattedUserInterfaceStyle(currentStyle));\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: 'Check User Interface Style'\r\n});\r\n\r\nbtn.addEventListener('click', function() {\r\n Ti.API.info('User Interface Style: ' + formattedUserInterfaceStyle(currentStyle));\r\n});\r\n\r\nTi.App.iOS.addEventListener('traitcollectionchange', function (event) {\r\n if (currentStyle !== Ti.App.iOS.userInterfaceStyle) {\r\n currentStyle = Ti.App.iOS.userInterfaceStyle;\r\n Ti.API.info('User Interface Style changed: ' + formattedUserInterfaceStyle(currentStyle));\r\n }\r\n});\r\n\r\nwin.add(btn);\r\nwin.open();\r\n\r\nfunction formattedUserInterfaceStyle(style) {\r\n switch (style) {\r\n case Ti.App.iOS.USER_INTERFACE_STYLE_LIGHT: return 'Light';\r\n case Ti.App.iOS.USER_INTERFACE_STYLE_DARK: return 'Dark';\r\n }\r\n\r\n return 'Unspecified';\r\n}\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-07-07T15:54:10.000+0000", "updated": "2019-07-07T15:54:10.000+0000" }, { "id": "450547", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nCan successfully determine the current mode dark/light and also the switch when it happens.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-16T21:38:43.000+0000", "updated": "2019-08-16T21:38:43.000+0000" }, { "id": "451020", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*, improvement verified in SDK version {{8.2.0.v20190829124255}}.\r\n\r\nNote* Improvement will be merged into 8_3_X at a later date. \r\n\r\nTest and other information can be found at:\r\nPull: https://github.com/appcelerator/titanium_mobile/pull/11031", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-09-02T10:31:27.000+0000", "updated": "2019-09-02T10:31:27.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }