diff options
Diffstat (limited to 'app/src/main/java/ml')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java index cd2e141d..36b33332 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java @@ -197,6 +197,7 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter<Post, RecyclerVie private int mVoteAndReplyUnavailableVoteButtonColor; private int mPostIconAndInfoColor; private int mDividerColor; + private int mButtonBackgroundColor; private float mScale; private boolean mDisplaySubredditName; private boolean mVoteButtonsOnTheRight; @@ -354,6 +355,7 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter<Post, RecyclerVie mVoteAndReplyUnavailableVoteButtonColor = customThemeWrapper.getVoteAndReplyUnavailableButtonColor(); mPostIconAndInfoColor = customThemeWrapper.getPostIconAndInfoColor(); mDividerColor = customThemeWrapper.getDividerColor(); + mButtonBackgroundColor = Color.parseColor("#FFFFFF"); mCommentIcon = AppCompatResources.getDrawable(activity, R.drawable.ic_comment_grey_24dp); if (mCommentIcon != null) { @@ -5959,12 +5961,17 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter<Post, RecyclerVie archivedImageView.setColorFilter(mArchivedIconTint, PorterDuff.Mode.SRC_IN); lockedImageView.setColorFilter(mLockedIconTint, PorterDuff.Mode.SRC_IN); crosspostImageView.setColorFilter(mCrosspostIconTint, PorterDuff.Mode.SRC_IN); + upvoteButton.setBackgroundTintList(ColorStateList.valueOf(mButtonBackgroundColor)); upvoteButton.setIconTint(ColorStateList.valueOf(mPostIconAndInfoColor)); + downvoteButton.setBackgroundTintList(ColorStateList.valueOf(mButtonBackgroundColor)); downvoteButton.setIconTint(ColorStateList.valueOf(mPostIconAndInfoColor)); + //commentsCountButton.setBackgroundTintList(ColorStateList.valueOf(mButtonBackgroundColor)); commentsCountButton.setTextColor(mPostIconAndInfoColor); - //commentsCountButton.setIcon(mCommentIcon); + commentsCountButton.setIcon(mCommentIcon); //commentsCountButton.setIconTint(ColorStateList.valueOf(mPostIconAndInfoColor)); + //saveButton.setBackgroundTintList(ColorStateList.valueOf(mButtonBackgroundColor)); saveButton.setIconTint(ColorStateList.valueOf(mPostIconAndInfoColor)); + //shareButton.setBackgroundTintList(ColorStateList.valueOf(mButtonBackgroundColor)); shareButton.setIconTint(ColorStateList.valueOf(mPostIconAndInfoColor)); itemView.setOnClickListener(view -> { |