Set secondary text color in Material You.

This commit is contained in:
Alex Ning 2021-07-17 10:39:24 +08:00
parent cf63ccaad1
commit a31090e324

View File

@ -76,6 +76,7 @@ public class MaterialYouUtils {
lightTheme.bottomAppBarBackgroundColor = colorPrimaryInt; lightTheme.bottomAppBarBackgroundColor = colorPrimaryInt;
lightTheme.navBarColor = colorPrimaryInt; lightTheme.navBarColor = colorPrimaryInt;
lightTheme.primaryTextColor = backgroundColorAppropriateTextColor; lightTheme.primaryTextColor = backgroundColorAppropriateTextColor;
lightTheme.secondaryTextColor = backgroundColorAppropriateTextColor == Color.BLACK ? Color.parseColor("#8A000000") : Color.parseColor("#B3FFFFFF");
lightTheme.bottomAppBarIconColor = colorPrimaryAppropriateTextColor; lightTheme.bottomAppBarIconColor = colorPrimaryAppropriateTextColor;
lightTheme.primaryIconColor = backgroundColorAppropriateTextColor; lightTheme.primaryIconColor = backgroundColorAppropriateTextColor;
lightTheme.fabIconColor = colorPrimaryAppropriateTextColor; lightTheme.fabIconColor = colorPrimaryAppropriateTextColor;