mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-07 05:15:43 +01:00
Use link color for widget unread color
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user