mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Fix contrast issue with folder background and text colors.
Bug: 187797251 Test: dark wallpaper, light wallpaper, toggle dark theme on both Change-Id: I57ddfc91878d68735d5ae5ec5ab78222fda101ca
This commit is contained in:
@@ -168,15 +168,15 @@ public class FolderAnimationManager {
|
||||
final float yDistance = initialY - lp.y;
|
||||
|
||||
// Set up the Folder background.
|
||||
int previewBackgroundColor = Themes.getAttrColor(mContext, R.attr.folderFillColor);
|
||||
final int finalColor;
|
||||
int folderFillColor = Themes.getAttrColor(mContext, R.attr.folderFillColor);
|
||||
if (mIsOpening) {
|
||||
finalColor = Themes.getAttrColor(mContext, R.attr.popupColorPrimary);
|
||||
finalColor = folderFillColor;
|
||||
} else {
|
||||
finalColor = mFolderBackground.getColor().getDefaultColor();
|
||||
}
|
||||
final int initialColor = setColorAlphaBound(previewBackgroundColor,
|
||||
mPreviewBackground.getBackgroundAlpha());
|
||||
final int initialColor = setColorAlphaBound(
|
||||
folderFillColor, mPreviewBackground.getBackgroundAlpha());
|
||||
mFolderBackground.mutate();
|
||||
mFolderBackground.setColor(mIsOpening ? initialColor : finalColor);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user