As of Titanium 9.3.0, apps use the Theme.MaterialComponents.Bridge by default.
We should change it to Theme.MaterialComponents.DayNight.DarkActionBar.
This would allow us to support Android 10's light/dark mode feature. A Titanium app would then be able to change between the 2 modes dynamically.
New Titanium Themes:
The following themes support dynamic switching between Day/Night (ie: Light/Dark) themes.
Note that OS versions older than Android 10 will use the Day (ie: Light) theme by default.
- Theme.Titanium.DayNight // This is the default.
Titanium Dark-only themes.
Titanium Light-only themes.
The above themes can be applied the AndroidManifest.xml <application/> element and/or to an Ti.UI.Window via its creation-only "theme" property. Titanium will assign the "Theme.Titanium.DayNight" to the application by default unless overriden in the "tiapp.xml" via the <applicaiton/> element.
The above Dark and Light themes are for app developers who want to opt-out of Light/Dark theme switching. This is especially useful for apps which hard-code colors.
New AppDerived Themes:
The following themes will be derived from the theme assigned to the AndroidManifest.xml <application/> element. If you do not set a custom theme there, then they will derive from the default Theme.Titanium.DayNight. These themes are intended to be passed to a Ti.UI.Window/Ti.UI.TabGroup "theme" property when wanting to remove the titlebar, show the window fullscreen, etc. and maintain the current app theme.
The following themes are also deprecated, but will still work. These themes have been replaced by the above mentioned Theme.AppDerived.* themes.
Do not use the following themes. These may cause errors or exceptions with the new material widgets that Titanium 10.0.0 uses. Custom themes must derive from Theme.MaterialComponents.*, but not the Bridge derived material themes.
This means we would be dropping the old "holo dark" theme as shown below.
We would end up using Google's modern material design theme where the "light" theme uses a white background instead of the old dark gray background.