Fix widgets and app drawer theme

This commit is contained in:
Suphon Thanakornpakapong committed 2021-10-09 17:19:55 +07:00
1 parent aa5561a0a5
commit fb97f8bd89
7 files changed
+220 -4

No files matched your search

@@ -64,7 +64,10 @@ public abstract class BaseWidgetSheet extends AbstractSlideInView<Launcher>
}
protected int getScrimColor(Context context) {
return context.getResources().getColor(R.color.widgets_picker_scrim);
boolean isMainColorDark = Themes.getAttrBoolean(context, R.attr.isMainColorDark);
return context.getResources().getColor(isMainColorDark
? R.color.widgets_picker_scrim_dark
: R.color.widgets_picker_scrim);
}
@Override