Use dynamic colors for folder background

This commit is contained in:
Suphon Thanakornpakapong
2022-05-09 18:48:59 +07:00
parent a4ffca0e55
commit 54e68e8597
6 changed files with 13 additions and 10 deletions
@@ -178,9 +178,8 @@ public class FolderAnimationManager {
final float yDistance = initialY - lp.y;
// Set up the Folder background.
// TODO: apply colortokens
final int initialColor = Themes.getAttrColor(mContext, R.attr.folderPreviewColor);
final int finalColor = Themes.getAttrColor(mContext, R.attr.folderBackgroundColor);
final int initialColor = ColorTokens.FolderPreviewColor.resolveColor(mContext);
final int finalColor = ColorTokens.FolderBackgroundColor.resolveColor(mContext);
mFolderBackground.mutate();
mFolderBackground.setColor(mIsOpening ? initialColor : finalColor);