Merge pull request #288 from believethehype/main
Fix for hashtag icon resolutions
This commit is contained in:
@@ -4,9 +4,13 @@ import androidx.compose.ui.graphics.Color
|
|||||||
import com.vitorpamplona.amethyst.R
|
import com.vitorpamplona.amethyst.R
|
||||||
fun checkForHashtagWithIcon(tag: String): HashtagIcon? {
|
fun checkForHashtagWithIcon(tag: String): HashtagIcon? {
|
||||||
if (tag.lowercase() == "bitcoin" || tag.lowercase() == "btc") {
|
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") {
|
} 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
|
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 |
Reference in New Issue
Block a user