mirror of https://github.com/M66B/FairEmail.git
Use link color for widget unread color
This commit is contained in:
parent
4dbdd1cdfa
commit
4e2108f0a2
|
@ -263,10 +263,11 @@ public class WidgetUnifiedRemoteViewsFactory implements RemoteViewsService.Remot
|
|||
}
|
||||
|
||||
if (daynight && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||
views.setColorStateListAttr(idFrom, "setTextColor", android.R.attr.textColorPrimary);
|
||||
views.setColorStateListAttr(idTime, "setTextColor", android.R.attr.textColorPrimary);
|
||||
views.setColorStateListAttr(idSubject, "setTextColor", android.R.attr.textColorPrimary);
|
||||
views.setColorStateListAttr(idAccount, "setTextColor", android.R.attr.textColorPrimary);
|
||||
int textColorAttr = (message.ui_seen ? android.R.attr.textColorPrimary : android.R.attr.textColorLink);
|
||||
views.setColorStateListAttr(idFrom, "setTextColor", textColorAttr);
|
||||
views.setColorStateListAttr(idTime, "setTextColor", textColorAttr);
|
||||
views.setColorStateListAttr(idSubject, "setTextColor", textColorAttr);
|
||||
views.setColorStateListAttr(idAccount, "setTextColor", textColorAttr);
|
||||
views.setInt(R.id.separator, "setBackgroundColor", Color.WHITE);
|
||||
views.setColorStateListAttr(R.id.separator, "setBackgroundTintList", android.R.attr.colorControlNormal);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue