[RAPPS] Display custom applications icons for installed applications CORE-17257 ...
authorOleg Dubinskiy <oleg.dubinskij2013@yandex.ua>
Sun, 20 Sep 2020 17:19:59 +0000 (20:19 +0300)
committerGitHub <noreply@github.com>
Sun, 20 Sep 2020 17:19:59 +0000 (19:19 +0200)
commit7eb90143f8bd4af34f49437e456293cd67bd39f6
tree5ec3204ba61ed7e12cb0a31a52e01bf0e3dcee98
parent5730485a51d8bb58ff9f8f2131b85c128510a6b6
[RAPPS] Display custom applications icons for installed applications CORE-17257 (#3144)

* [RAPPS] Display custom applications icons for installed applications
- Implement `RetrieveIcon` helper function in `CInstalledApplicationInfo` class, which retrueves the current app's icon from registry, same as it done for `CAvailableApplicationInfo`.
- Use it for loading the icon in `CAppsListView::AddInstalledApplication` function, via `ExtractIconW`. Load default Rapps icon only when the app has no its custom icon.
- Retrieve `DisplayIcon` value from registry in `CInstalledApps::Enum` function, same as other registry values (like app name, description, etc).Store it in `szDisplayIcon` string, which is used in `CInstalledApplicationInfo::RetrieveIcon` for retrieving the data of that value.
- Increase `LISTVIEW_ICON_SIZE` macro from 24 to 32, so 32x32 icon size is now used instead of 24x24. This makes displayed icons more accurate, since most of apps contain 32x32 icon, so they look a bit distorted with 24x24 size.
base/applications/rapps/appview.cpp
base/applications/rapps/include/appview.h
base/applications/rapps/include/installed.h
base/applications/rapps/installed.cpp