Apply alpha only to tag text, Resolve #894

This commit is contained in:
tarsin committed 2023-02-27 12:06:57 +08:00
1 parent 2fea94ce9b
commit e5500b978c
1 file changed
+2 -1
@@ -648,7 +648,8 @@ class GalleryDetailScene : CollapsingToolbarScene(), View.OnClickListener, Downl
val tag = inflater.inflate(R.layout.item_gallery_tag, awl, false) as TextView
awl.addView(tag)
val tagStr = if (it.startsWith('_')) {
tag.alpha = 0.5f
val alpha = ColorUtils.setAlphaComponent(tag.currentTextColor, 128)
tag.setTextColor(alpha)
it.substring(1)
} else {
it