aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorMohamed Zenadi <mohamed@zenadi.com>2015-10-13 20:16:13 +0200
committerMohamed Zenadi <mohamed@zenadi.com>2015-10-13 20:16:13 +0200
commitd885693532711a233d6533dcc515f442fd0d9dcc (patch)
treebb2f929df636f7b8868642b7b4f8bd1050f423cf /app/src/main/java
parent794d153834f04db8171ad63e74be489cdd1b0d3f (diff)
revert to old colors, blue/orange was indeed ugly
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java18
1 files changed, 11 insertions, 7 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java
index 3671fe57..c9158b30 100644
--- a/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java
+++ b/app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java
@@ -75,7 +75,7 @@ public class PasswordRecyclerAdapter extends RecyclerView.Adapter<PasswordRecycl
holder.card.setCardBackgroundColor(activity.getResources().getColor(R.color.deep_orange_400));
} else {
holder.type.setText(pass.getFullPathName());
- holder.card.setCardBackgroundColor(activity.getResources().getColor(R.color.light_blue_600));
+ holder.card.setCardBackgroundColor(activity.getResources().getColor(R.color.blue_grey_400));
}
holder.view.setOnClickListener(new View.OnClickListener() {
@@ -188,15 +188,19 @@ public class PasswordRecyclerAdapter extends RecyclerView.Adapter<PasswordRecycl
public void toggleSelection(int position, CardView card, char type) {
if (!selectedItems.remove(position)) {
selectedItems.add(position);
- if (type == PasswordItem.TYPE_CATEGORY)
+ if (type == PasswordItem.TYPE_CATEGORY) {
card.setCardBackgroundColor(activity.getResources().getColor(R.color.deep_orange_200));
- else
- card.setCardBackgroundColor(activity.getResources().getColor(R.color.light_blue_200));
+ }
+ else {
+ card.setCardBackgroundColor(activity.getResources().getColor(R.color.blue_grey_200));
+ }
} else {
- if (type == PasswordItem.TYPE_CATEGORY)
+ if (type == PasswordItem.TYPE_CATEGORY) {
card.setCardBackgroundColor(activity.getResources().getColor(R.color.deep_orange_400));
- else
- card.setCardBackgroundColor(activity.getResources().getColor(R.color.light_blue_600));
+ }
+ else {
+ card.setCardBackgroundColor(activity.getResources().getColor(R.color.blue_grey_400));
+ }
}
}