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:
parent
8a7841e0a9
commit
76d322befb
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue