Merge pull request #288 from believethehype/main

Fix for hashtag icon resolutions
This commit is contained in:
Vitor Pamplona
2023-03-17 18:49:02 -04:00
committed by GitHub
4 changed files with 6 additions and 2 deletions
@@ -4,9 +4,13 @@ import androidx.compose.ui.graphics.Color
import com.vitorpamplona.amethyst.R
fun checkForHashtagWithIcon(tag: String): HashtagIcon? {
if (tag.lowercase() == "bitcoin" || tag.lowercase() == "btc") {
return HashtagIcon(R.drawable.ht_btc, "Bitcoin", Color(0xFFF2A900))
return HashtagIcon(R.drawable.ht_btc, "Bitcoin", Color.Unspecified)
} else if (tag.lowercase() == "nostr") {
return HashtagIcon(R.drawable.ht_nostr, "Nostr", Color(0xFF9C59FF))
return HashtagIcon(R.drawable.ht_nostr, "Nostr", Color.Unspecified)
} else if (tag.lowercase() == "zap" || tag.lowercase() == "zaps" || tag.lowercase() == "zapathon" || tag.lowercase() == "zapraiser" || tag.lowercase() == "zaplife" || tag.lowercase() == "lightning") {
return HashtagIcon(R.drawable.lightning, "Zap", Color.Unspecified)
} else if (tag.lowercase() == "amethyst") {
return HashtagIcon(R.drawable.amethyst, "Amethyst", Color.Unspecified)
}
return null
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 11 KiB