Selaa lähdekoodia

wip

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 6 vuotta sitten
vanhempi
commit
dc41a2f7f0

+ 6 - 2
src/main/java/com/owncloud/android/ui/adapter/NotificationListAdapter.java

@@ -146,16 +146,20 @@ public class NotificationListAdapter extends RecyclerView.Adapter<NotificationLi
         for (Action action : notification.getActions()) {
             button = new MaterialButton(notificationsActivity);
 
+            int primaryColor = ThemeUtils.primaryColor(notificationsActivity);
+
             if (action.primary) {
-                button.getBackground().setColorFilter(ThemeUtils.primaryColor(notificationsActivity),
-                                                      PorterDuff.Mode.SRC_ATOP);
+                button.getBackground().setColorFilter(primaryColor, PorterDuff.Mode.SRC_ATOP);
                 button.setTextColor(ThemeUtils.fontColor(notificationsActivity));
+                button.setTypeface(button.getTypeface(), Typeface.BOLD);
             } else {
                 button.setStrokeColor(ColorStateList.valueOf(resources.getColor(R.color.grey_200)));
                 button.setStrokeWidth(3);
 
                 button.getBackground().setColorFilter(resources.getColor(R.color.transparent),
                                                       PorterDuff.Mode.SRC_ATOP);
+                button.setTextColor(primaryColor);
+                button.setTypeface(button.getTypeface(), Typeface.BOLD);
             }
 
             button.setText(action.label);