use color attributes instead of fixed colors

This commit is contained in:
sk
2022-12-22 00:57:12 +01:00
parent d69221d85b
commit 750579b1c2
14 changed files with 17 additions and 17 deletions

View File

@@ -142,7 +142,7 @@ public class PushNotificationReceiver extends BroadcastReceiver{
.setShowWhen(true)
.setCategory(Notification.CATEGORY_SOCIAL)
.setAutoCancel(true)
.setColor(context.getColor(R.color.primary_700));
.setColor(UiUtils.getThemeColor(context, R.attr.colorPrimary700));
switch (pn.notificationType) {
case FAVORITE -> builder.setSmallIcon(R.drawable.ic_fluent_star_24_filled);
case REBLOG -> builder.setSmallIcon(R.drawable.ic_fluent_arrow_repeat_all_24_filled);