Loading quickstep/src/com/android/quickstep/views/ShelfScrimView.java +8 −2 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ public class ShelfScrimView extends ScrimView { private static final int THRESHOLD_ALPHA_DARK = 102; private static final int THRESHOLD_ALPHA_LIGHT = 46; private static final int THRESHOLD_ALPHA_SUPER_LIGHT = 128; // In transposed layout, we simply draw a flat color. private boolean mDrawingFlatColor; Loading Loading @@ -76,8 +77,13 @@ public class ShelfScrimView extends ScrimView { mMaxScrimAlpha = OVERVIEW.getWorkspaceScrimAlpha(mLauncher); mEndAlpha = Color.alpha(mEndScrim); mThresholdAlpha = Themes.getAttrBoolean(mLauncher, R.attr.isMainColorDark) ? THRESHOLD_ALPHA_DARK : THRESHOLD_ALPHA_LIGHT; if (Themes.getAttrBoolean(mLauncher, R.attr.isMainColorDark)) { mThresholdAlpha = THRESHOLD_ALPHA_DARK; } else if (Themes.getAttrBoolean(mLauncher, R.attr.isWorkspaceDarkText)) { mThresholdAlpha = THRESHOLD_ALPHA_SUPER_LIGHT; } else { mThresholdAlpha = THRESHOLD_ALPHA_LIGHT; } mRadius = mLauncher.getResources().getDimension(R.dimen.shelf_surface_radius); mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); Loading Loading
quickstep/src/com/android/quickstep/views/ShelfScrimView.java +8 −2 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ public class ShelfScrimView extends ScrimView { private static final int THRESHOLD_ALPHA_DARK = 102; private static final int THRESHOLD_ALPHA_LIGHT = 46; private static final int THRESHOLD_ALPHA_SUPER_LIGHT = 128; // In transposed layout, we simply draw a flat color. private boolean mDrawingFlatColor; Loading Loading @@ -76,8 +77,13 @@ public class ShelfScrimView extends ScrimView { mMaxScrimAlpha = OVERVIEW.getWorkspaceScrimAlpha(mLauncher); mEndAlpha = Color.alpha(mEndScrim); mThresholdAlpha = Themes.getAttrBoolean(mLauncher, R.attr.isMainColorDark) ? THRESHOLD_ALPHA_DARK : THRESHOLD_ALPHA_LIGHT; if (Themes.getAttrBoolean(mLauncher, R.attr.isMainColorDark)) { mThresholdAlpha = THRESHOLD_ALPHA_DARK; } else if (Themes.getAttrBoolean(mLauncher, R.attr.isWorkspaceDarkText)) { mThresholdAlpha = THRESHOLD_ALPHA_SUPER_LIGHT; } else { mThresholdAlpha = THRESHOLD_ALPHA_LIGHT; } mRadius = mLauncher.getResources().getDimension(R.dimen.shelf_surface_radius); mPaint = new Paint(Paint.ANTI_ALIAS_FLAG); Loading