1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 02:07:12 +00:00

Fixed widget unread color on light background

This commit is contained in:
M66B 2022-04-27 07:10:34 +02:00
parent 8a7841e0a9
commit 76d322befb

View file

@ -113,8 +113,6 @@ public class WidgetUnifiedRemoteViewsFactory implements RemoteViewsService.Remot
this.colorStripeWidth = Helper.dp2pixels(context, color_stripe_wide ? 12 : 6);
colorWidgetForeground = ContextCompat.getColor(context, R.color.colorWidgetForeground);
int highlight_color = prefs.getInt("highlight_color", colorWidgetForeground);
colorWidgetUnread = ColorUtils.setAlphaComponent(highlight_color, 255);
colorWidgetRead = ContextCompat.getColor(context, R.color.colorWidgetRead);
colorSeparator = ContextCompat.getColor(context, R.color.lightColorSeparator);
@ -125,6 +123,9 @@ public class WidgetUnifiedRemoteViewsFactory implements RemoteViewsService.Remot
colorSeparator = ContextCompat.getColor(context, R.color.darkColorSeparator);
}
int highlight_color = prefs.getInt("highlight_color", colorWidgetForeground);
colorWidgetUnread = ColorUtils.setAlphaComponent(highlight_color, 255);
pro = ActivityBilling.isPro(context);
DB db = DB.getInstance(context);