1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-30 19:56:10 +00:00
This commit is contained in:
M66B 2022-03-05 10:38:50 +01:00
parent b9397c4664
commit ca02055b77

View file

@ -134,10 +134,10 @@ public class Widget extends AppWidgetProvider {
else
views.setInt(android.R.id.background, "setBackgroundColor", background);
int colorWidgetForeground = context.getResources().getColor(R.color.colorWidgetForeground);
views.setInt(R.id.ivMessage, "setColorFilter", colorWidgetForeground);
views.setTextColor(R.id.tvCount, colorWidgetForeground);
views.setTextColor(R.id.tvAccount, colorWidgetForeground);
//int colorWidgetForeground = context.getResources().getColor(R.color.colorWidgetForeground);
//views.setInt(R.id.ivMessage, "setColorFilter", colorWidgetForeground);
//views.setTextColor(R.id.tvCount, colorWidgetForeground);
//views.setTextColor(R.id.tvAccount, colorWidgetForeground);
} else {
float lum = (float) ColorUtils.calculateLuminance(background);