diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-09-10 21:19:29 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-09-10 21:19:29 +0000 |
commit | 743c16b1bee74c57d56357be4a0ecbb142fecc4b (patch) | |
tree | cc7d507a700b9dbba34c0996f9666ef9a47b61c7 /app/src/main/java/ml/docilealligator/infinityforreddit | |
parent | d9f2016db3174233c4f70d9c42dddd84f2d60367 (diff) | |
download | infinity-for-reddit-743c16b1bee74c57d56357be4a0ecbb142fecc4b.tar infinity-for-reddit-743c16b1bee74c57d56357be4a0ecbb142fecc4b.tar.gz infinity-for-reddit-743c16b1bee74c57d56357be4a0ecbb142fecc4b.tar.bz2 infinity-for-reddit-743c16b1bee74c57d56357be4a0ecbb142fecc4b.tar.lz infinity-for-reddit-743c16b1bee74c57d56357be4a0ecbb142fecc4b.tar.xz infinity-for-reddit-743c16b1bee74c57d56357be4a0ecbb142fecc4b.tar.zst infinity-for-reddit-743c16b1bee74c57d56357be4a0ecbb142fecc4b.zip |
Continue adding Card Layout 3.
Diffstat (limited to 'app/src/main/java/ml/docilealligator/infinityforreddit')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java | 15 |
1 files changed, 4 insertions, 11 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 bb2dc2e2..5da7bbc4 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java @@ -197,7 +197,6 @@ 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; @@ -355,7 +354,6 @@ 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) { @@ -1635,9 +1633,8 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter<Post, RecyclerVie ((PostMaterial3CardBaseViewHolder) holder).userTextView.setText(authorPrefixed); } - //TODO change color - /*((PostMaterial3CardBaseViewHolder) holder).userTextView.setTextColor( - post.isModerator() ? mModeratorColor : mUsernameColor);*/ + ((PostMaterial3CardBaseViewHolder) holder).userTextView.setTextColor( + post.isModerator() ? mModeratorColor : mUsernameColor); if (mDisplaySubredditName) { if (authorPrefixed.equals(post.getSubredditNamePrefixed())) { @@ -5939,10 +5936,8 @@ public class PostRecyclerViewAdapter extends PagingDataAdapter<Post, RecyclerVie titleTextView.setTypeface(mActivity.titleTypeface); } - /*subredditTextView.setTextColor(mSubredditColor); - userTextView.setTextColor(mUsernameColor);*/ - subredditTextView.setTextColor(mPrimaryTextColor); - userTextView.setTextColor(mPrimaryTextColor); + subredditTextView.setTextColor(mSubredditColor); + userTextView.setTextColor(mUsernameColor); postTimeTextView.setTextColor(mSecondaryTextColor); titleTextView.setTextColor(mPostTitleColor); stickiedPostImageView.setColorFilter(mStickiedPostIconTint, PorterDuff.Mode.SRC_IN); @@ -5964,9 +5959,7 @@ 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); |