mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Removing dependency on wallpaper colors and using theme resources
Bug: 184676715 Test: Manual Change-Id: Ie9a9a784c4a8a8cd484bfd8ea463deedcd4deed6
This commit is contained in:
@@ -35,7 +35,6 @@ import com.android.launcher3.popup.PopupDataProvider;
|
||||
import com.android.launcher3.testing.TestLogging;
|
||||
import com.android.launcher3.testing.TestProtocol;
|
||||
import com.android.launcher3.touch.ItemLongClickListener;
|
||||
import com.android.launcher3.uioverrides.WallpaperColorInfo;
|
||||
import com.android.launcher3.util.SystemUiController;
|
||||
import com.android.launcher3.util.Themes;
|
||||
import com.android.launcher3.views.AbstractSlideInView;
|
||||
@@ -56,9 +55,8 @@ public abstract class BaseWidgetSheet extends AbstractSlideInView
|
||||
}
|
||||
|
||||
protected int getScrimColor(Context context) {
|
||||
WallpaperColorInfo colors = WallpaperColorInfo.INSTANCE.get(context);
|
||||
int alpha = context.getResources().getInteger(R.integer.extracted_color_gradient_alpha);
|
||||
return setColorAlphaBound(colors.getSecondaryColor(), alpha);
|
||||
return setColorAlphaBound(context.getColor(R.color.wallpaper_popup_scrim), alpha);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user