summaryrefslogtreecommitdiff
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
parent794d153834f04db8171ad63e74be489cdd1b0d3f (diff)
revert to old colors, blue/orange was indeed ugly
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/utils/PasswordRecyclerAdapter.java18
-rw-r--r--app/src/main/res/layout/password_recycler_view.xml4
-rw-r--r--app/src/main/res/layout/password_row_layout.xml2
-rw-r--r--app/src/main/res/values/styles.xml10
4 files changed, 19 insertions, 15 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));
+ }
}
}
diff --git a/app/src/main/res/layout/password_recycler_view.xml b/app/src/main/res/layout/password_recycler_view.xml
index c49e4e45..1b922a17 100644
--- a/app/src/main/res/layout/password_recycler_view.xml
+++ b/app/src/main/res/layout/password_recycler_view.xml
@@ -25,8 +25,8 @@
android:layout_gravity="bottom|end"
app:elevation="6dp"
app:pressedTranslationZ="12dp"
- app:backgroundTint="@color/indigo_A700"
- app:rippleColor="@color/blue_500"
+ app:backgroundTint="@color/blue_grey_500"
+ app:rippleColor="@color/blue_grey_50"
app:borderWidth="0dp"
android:layout_margin="@dimen/fab_compat_margin"
android:layout_alignParentBottom="true"
diff --git a/app/src/main/res/layout/password_row_layout.xml b/app/src/main/res/layout/password_row_layout.xml
index 1e694f87..05e349cd 100644
--- a/app/src/main/res/layout/password_row_layout.xml
+++ b/app/src/main/res/layout/password_row_layout.xml
@@ -18,7 +18,7 @@
card_view:contentPaddingLeft="4dp"
card_view:cardCornerRadius="4dp"
card_view:cardElevation="3dp"
- card_view:cardBackgroundColor="@color/light_blue_600">
+ card_view:cardBackgroundColor="@color/light_blue_50">
<TextView
android:id="@+id/type"
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 9f610b68..3fffef42 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -2,15 +2,15 @@
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
- <item name="colorPrimary">@color/indigo_A400</item>
- <item name="colorPrimaryDark">@color/indigo_A700</item>
- <item name="android:windowBackground">@color/indigo_50</item>
- <item name="android:textColorPrimary">@color/blue_500</item>
+ <item name="colorPrimary">@color/blue_grey_500</item>
+ <item name="colorPrimaryDark">@color/blue_grey_700</item>
+ <item name="android:windowBackground">@color/blue_grey_50</item>
+ <item name="android:textColorPrimary">@color/teal_900</item>
<item name="android:textColor">@color/text_color</item>
<item name="actionModeStyle">@style/ActionMode</item>
</style>
<style name="ActionMode" parent="@style/Widget.AppCompat.ActionMode">
- <item name="background">@color/indigo_A700</item>
+ <item name="background">@color/blue_grey_700</item>
</style>
</resources>