Obtainium icon indicating copy to clipboard operation
Obtainium copied to clipboard

Fetch and cache icons

Open momobobe opened this issue 1 year ago • 3 comments

Currently only an installed App has its icon displayed, which makes it hard to distinguish all the uninstalled Apps from a long list. Maybe it's better to fetch the icon from sources upon adding in list. This is doable since sources of alternative App stores always have icons displayed, and sources of code repo usually contain the icon as PNG files in locations like .../src/main/ or .../src/main/res/mipmap-{$dpi}/. After fetching, the icons should be stored locally in persistent cache unless there is any change, and uninstalling an App won't remove its icon, so in this way App records with empty icon could get eliminated.

momobobe avatar Jun 07 '23 13:06 momobobe

I do like this idea however if this will be added I think there should be a more obvious way to differentiate installed from not installed apps beside the note on the saude that's says not installed. Having no icon makes it super convenient to see which aren't installed

Zumux avatar Jun 13 '23 18:06 Zumux

Same issue the icons were not showing of the apps that are not installed @ImranR98 Screenshot_2023-10-21-09-42-30-272_dev imranr obtainium

tusharchopra07 avatar Oct 21 '23 04:10 tusharchopra07

GitLab api returns project avatar avatar_url example

GitHub allows setting social media preview (Settings > Social preview ), but it's not returned by api (probably present in html though). Alternatively most repos include app icon in README so taking first image (or first with 1:1 aspect ratio) would allow adding icons before installation.

F-droid seems to provide icon, example when searching


In terms of distinguishing installed from not installed: maybe half-transparent icons or in grayscale (?). Because I agree we need some good way to separate them.

Or maybe making icons smaller, it may look wird but surely would be easy to notice and distinguish one from the other

wasu-code avatar Aug 05 '24 20:08 wasu-code