Closed DeweyReed closed 4 years ago
Changes:
isDark
will be removed because it's not a part of "App Theme".getMaterialThemeColorsTintList
will be used to tint views instead of using some hacky ways.colorPirmary
, colorPrimaryVariant
(previously colorPrimaryDark
), colorOnPrimary
, colorSecondary
(previous colorAccent
), colorSecondaryVariant
, colorOnSecondary
. Because other colors(background, color, error) don't belong to an app brand, currently there is no plan to support them.I'll use viewInflaterClass
to create views and tint them.
I think we can use something like Theme_android_textColor
to get text color without hacking.
I notice something like
colorOnPrimary
has been added to material library. That definitely requires some work to adapt it.Docs: https://github.com/material-components/material-components-android/blob/master/docs/theming/Color.md