overlays: Provide home icons in different sizes
|
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
|
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 497 B |
|
After Width: | Height: | Size: 561 B |
|
After Width: | Height: | Size: 384 B |
|
After Width: | Height: | Size: 721 B |
|
After Width: | Height: | Size: 509 B |
|
After Width: | Height: | Size: 702 B |
|
After Width: | Height: | Size: 672 B |
|
After Width: | Height: | Size: 447 B |
|
After Width: | Height: | Size: 587 B |
|
After Width: | Height: | Size: 354 B |
@@ -40,12 +40,7 @@ namespace rsx::overlays::home_menu
|
|||||||
|
|
||||||
void load_icon(fa_icon icon)
|
void load_icon(fa_icon icon)
|
||||||
{
|
{
|
||||||
if (!g_icons_cache.empty())
|
const std::string image_path = fmt::format("%s/Icons/ui/home/32/%s", fs::get_config_dir(), fa_icon_to_filename(icon));
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const std::string image_path = fmt::format("%s/Icons/ui/home/%s", fs::get_config_dir(), fa_icon_to_filename(icon));
|
|
||||||
g_icons_cache[icon] = std::make_unique<image_info>(image_path);
|
g_icons_cache[icon] = std::make_unique<image_info>(image_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||