diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java index ec9893f2d..8dd79cb1a 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java @@ -1428,16 +1428,14 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList } } - private class AboutViewHolder extends BaseViewHolder implements ImageLoaderViewHolder { + private class AboutViewHolder extends BaseViewHolder implements ImageLoaderViewHolder{ private final TextView title; private final LinkedTextView value; -// private final ImageView verifiedIcon; public AboutViewHolder(){ super(R.layout.item_profile_about); title=findViewById(R.id.title); value=findViewById(R.id.value); -// verifiedIcon=findViewById(R.id.verified_icon); } @Override @@ -1445,7 +1443,18 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList super.onBind(item); title.setText(item.parsedName); value.setText(item.parsedValue); -// verifiedIcon.setVisibility(item.verifiedAt!=null ? View.VISIBLE : View.GONE); + if(item.verifiedAt!=null){ + int textColor=UiUtils.isDarkTheme() ? 0xFF89bb9c : 0xFF5b8e63; + value.setTextColor(textColor); + value.setLinkTextColor(textColor); + Drawable check=getResources().getDrawable(R.drawable.ic_fluent_checkmark_starburst_20_regular, getActivity().getTheme()).mutate(); + check.setTint(textColor); + value.setCompoundDrawablesRelativeWithIntrinsicBounds(null, null, check, null); + }else{ + value.setTextColor(UiUtils.getThemeColor(getActivity(), android.R.attr.textColorPrimary)); + value.setLinkTextColor(UiUtils.getThemeColor(getActivity(), android.R.attr.colorAccent)); + value.setCompoundDrawables(null, null, null, null); + } } @Override diff --git a/mastodon/src/main/res/drawable/ic_fluent_checkmark_starburst_20_regular.xml b/mastodon/src/main/res/drawable/ic_fluent_checkmark_starburst_20_regular.xml new file mode 100644 index 000000000..30f18e4c4 --- /dev/null +++ b/mastodon/src/main/res/drawable/ic_fluent_checkmark_starburst_20_regular.xml @@ -0,0 +1,3 @@ + + +