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
1 changed files with 3 additions and 2 deletions

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);