From 0544efc96609247f52a121e616cebf5a48f062da Mon Sep 17 00:00:00 2001 From: Mengxi Zhang <44084361+Kazaf123@users.noreply.github.com> Date: Mon, 24 Apr 2023 13:26:01 +0800 Subject: [PATCH] Deepen the view color Deepening the color of the view makes it easier for low-vision users to see --- .../java/com/justwayward/reader/view/SelectionLayout.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/justwayward/reader/view/SelectionLayout.java b/app/src/main/java/com/justwayward/reader/view/SelectionLayout.java index 282af66b..8a1fd9cb 100644 --- a/app/src/main/java/com/justwayward/reader/view/SelectionLayout.java +++ b/app/src/main/java/com/justwayward/reader/view/SelectionLayout.java @@ -206,10 +206,10 @@ public SelAdapter(Context context, List list) { @Override public void convert(EasyLVHolder holder, int position, String s) { holder.setText(R.id.tvSelTitleItem, s); - if (selPosition == position) { - holder.setTextColor(R.id.tvSelTitleItem, ContextCompat.getColor(mContext, R.color.light_pink)); + if (selPosition == position) { + holder.setTextColor(R.id.tvSelTitleItem, ContextCompat.getColor(mContext, R.color.dark_pink)); } else { - holder.setTextColor(R.id.tvSelTitleItem, ContextCompat.getColor(mContext, R.color.light_black)); + holder.setTextColor(R.id.tvSelTitleItem, ContextCompat.getColor(mContext, R.color.dark_black)); } }