Use dynamic colors for folder background
This commit is contained in:
1 parent
a4ffca0e55
commit
54e68e8597
6 files changed
+13
-10
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user