Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-28512

Android: Investigate "Material You" theme support on Android 12

    Details

      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

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              jquick Joshua Quick
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration