Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28512] Android: Investigate "Material You" theme support on Android 12

GitHub Issuen/a
TypeStory
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sRelease 10.2.0
ComponentsAndroid
Labelsandroid, material-theme, theme
ReporterJoshua Quick
AssigneeGary Mathews
Created2021-07-28T19:15:22.000+0000
Updated2021-10-07T16:04:18.000+0000

Description

*Summary:* Android 12 has a new feature named "Material You" where setting the wallpaper will change the color theme of the system and it's expected for apps to change there color theme as well. https://material.io/blog/announcing-material-you *To be investigated:* Google hasn't released details on how exactly app developers can support this yet. Nor have they updated their material components libraries to support it either. Currently, all apps hard-code the colors in their themes (including Google's own material themes). In order to support changeable system color, we can't hard-code colors in the theme on Android 12 anymore. I suspect we'll have to define colors under a res/values-31 folder which uses the new Android 12 "system accent" color constants. https://developer.android.com/reference/android/R.color#system_accent1_0 I also suspect that we should ignore dark/night-mode on Android 12 in our theme. Our theme colors must still be defined by the system... and if the system defines different colors for dark/light mode, then we'll end up getting support for this for free when switching to system accent colors. This is also speculation until Google officially reveals how this will work for developers.

Attachments

FileDateSize
MaterialYou.gif2021-08-17T06:13:12.000+00001386819

Comments

No comments

JSON Source