From ffa65a7dd86cd97673ef261235ce6ba8f521cf85 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Fri, 26 Feb 2021 17:06:33 +0800 Subject: Change some colors. Add a current user icon. --- .../infinityforreddit/RedditDataRoomDatabase.java | 2 +- .../CommentAndPostRecyclerViewAdapter.java | 3 +++ .../customtheme/CustomThemeWrapper.java | 26 +++++++++++----------- app/src/main/res/drawable/ic_current_user_14dp.xml | 4 ++++ 4 files changed, 21 insertions(+), 14 deletions(-) create mode 100644 app/src/main/res/drawable/ic_current_user_14dp.xml (limited to 'app/src/main') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/RedditDataRoomDatabase.java b/app/src/main/java/ml/docilealligator/infinityforreddit/RedditDataRoomDatabase.java index 641f508a..3ebfcfc2 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/RedditDataRoomDatabase.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/RedditDataRoomDatabase.java @@ -321,7 +321,7 @@ public abstract class RedditDataRoomDatabase extends RoomDatabase { private static final Migration MIGRATION_17_18 = new Migration(17, 18) { @Override public void migrate(@NonNull SupportSQLiteDatabase database) { - database.execSQL("ALTER TABLE custom_themes ADD COLUMN current_user INTEGER DEFAULT " + Color.parseColor("#A202EE") + " NOT NULL"); + database.execSQL("ALTER TABLE custom_themes ADD COLUMN current_user INTEGER DEFAULT " + Color.parseColor("#00D5EA") + " NOT NULL"); database.execSQL("ALTER TABLE custom_themes ADD COLUMN upvote_ratio_icon_tint INTEGER DEFAULT " + Color.parseColor("#0256EE") + " NOT NULL"); } }; diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentAndPostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentAndPostRecyclerViewAdapter.java index 1ceec9a5..bfa2e0b1 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentAndPostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentAndPostRecyclerViewAdapter.java @@ -1070,6 +1070,9 @@ public class CommentAndPostRecyclerViewAdapter extends RecyclerView.Adapter + + -- cgit v1.2.3