{ "id": "176074", "key": "TIMOB-28369", "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": [ { "id": "21199", "description": "", "name": "Release 10.0.1", "archived": false, "released": true, "releaseDate": "2021-07-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-06-10T17:17:43.000+0000", "created": "2021-02-25T03:57:15.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "iOS", "theme" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-06-10T17:17:43.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": "10202", "name": "Android", "description": "Android Platform" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" }, { "id": "15102", "name": "Mac", "description": "Mac authoring support" } ], "description": "*Summary:*\r\nWe should add a new writable {{Ti.UI.overrideUserInterfaceStyle}} property that allows you to force the app to use a dark or light theme instead of using the system assigned theme. If this property is assigned the [Ti.UI.USER_INTERFACE_STYLE_UNSPECIFIED|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI-property-USER_INTERFACE_STYLE_UNSPECIFIED] constant (the default), then the app will use the system theme instead.\r\n\r\nThe existing read-only [Ti.UI.userInterfaceStyle|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI-property-userInterfaceStyle] property needs to be its own property. If the {{overrideUserInterfaceStyle}} is set to unspecified, then the {{userInterfaceStyle}} property will reveal if the system is using the dark or light theme.\r\n\r\n*Native Implementation:*\r\nOn iOS, this can be implemented via the native [UIView.overrideUserInterfaceStyle|https://developer.apple.com/documentation/uikit/uiview/3238086-overrideuserinterfacestyle?language=objc] property.\r\n\r\nOn Android, this can be implemented via the Java [AppCompatDelegate.setNightMode()|https://developer.android.com/reference/androidx/appcompat/app/AppCompatDelegate#setDefaultNightMode(int)] method.\r\n\r\n*Android Example:*\r\n !AndroidExample.gif! \r\n", "attachment": [ { "id": "67829", "filename": "AndroidExample.gif", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-02-27T05:44:51.000+0000", "size": 4318999, "mimeType": "image/gif" }, { "id": "67825", "filename": "ThemeOverrideTest.js", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-02-25T04:49:44.000+0000", "size": 1914, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Android: Add Ti.UI.overrideUserInterfaceStyle property", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "458306", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12353", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-02-25T04:45:52.000+0000", "updated": "2021-02-25T04:45:52.000+0000" }, { "id": "458335", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed, waiting on Jenkins build and Backport. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-03-04T13:39:18.000+0000", "updated": "2021-03-04T13:39:18.000+0000" }, { "id": "458342", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master and 10_0_X for 10.0.0 release target.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2021-03-05T15:56:25.000+0000", "updated": "2021-03-05T15:56:25.000+0000" }, { "id": "458750", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This change didn't get back-ported and is missing in the 10_0_X branch. We'll have to back-port the following commit.\r\nhttps://github.com/appcelerator/titanium_mobile/pull/12353/commits/40166f6ffbafd8a82a21ea3e4a4108aff8e22b3e\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-06-09T18:31:02.000+0000", "updated": "2021-06-09T18:31:02.000+0000" }, { "id": "458753", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (10_0_X): https://github.com/appcelerator/titanium_mobile/pull/12876", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-06-09T22:06:48.000+0000", "updated": "2021-06-09T22:06:48.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }