replace png badges by svg

This commit is contained in:
Sophia Hadash 2021-09-14 02:44:47 +02:00 committed by SophiaHadash
parent aaf5d0209b
commit f230b0de0e
10 changed files with 769 additions and 9 deletions

View file

@ -20,10 +20,10 @@ BadgesComponent::BadgesComponent(Window* window)
mSlots = {SLOT_FAVORITE, SLOT_COMPLETED, SLOT_KIDS, SLOT_BROKEN};
mBadgeIcons = std::map<std::string, std::string>();
mBadgeIcons[SLOT_FAVORITE] = ":/graphics/badge_favorite.png";
mBadgeIcons[SLOT_COMPLETED] = ":/graphics/badge_completed.png";
mBadgeIcons[SLOT_KIDS] = ":/graphics/badge_kidgame.png";
mBadgeIcons[SLOT_BROKEN] = ":/graphics/badge_broken.png";
mBadgeIcons[SLOT_FAVORITE] = ":/graphics/badge_favorite.svg";
mBadgeIcons[SLOT_COMPLETED] = ":/graphics/badge_completed.svg";
mBadgeIcons[SLOT_KIDS] = ":/graphics/badge_kidgame.svg";
mBadgeIcons[SLOT_BROKEN] = ":/graphics/badge_broken.svg";
// Create the child ImageComponent for every badge.
mImageComponents = std::map<std::string, ImageComponent>();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 285 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 284 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 284 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 284 KiB

View file

@ -245,14 +245,14 @@ based on: 'recalbox-multi' by the Recalbox community
<align>start</align>
<itemsPerLine>2</itemsPerLine>
<itemMargin>10 5</itemMargin>
<itemWidth>.05</itemWidth>
<itemWidth>.035</itemWidth>
<!-- badges properties -->
<slots>favorite completed kidgame broken</slots>
<customBadgeIcon badge="favorite">:/graphics/badge_favorite.png</customBadgeIcon>
<customBadgeIcon badge="completed">:/graphics/badge_completed.png</customBadgeIcon>
<customBadgeIcon badge="kidgame">:/graphics/badge_kidgame.png</customBadgeIcon>
<customBadgeIcon badge="broken">:/graphics/badge_broken.png</customBadgeIcon>
<customBadgeIcon badge="favorite">:/graphics/badge_favorite.svg</customBadgeIcon>
<customBadgeIcon badge="completed">:/graphics/badge_completed.svg</customBadgeIcon>
<customBadgeIcon badge="kidgame">:/graphics/badge_kidgame.svg</customBadgeIcon>
<customBadgeIcon badge="broken">:/graphics/badge_broken.svg</customBadgeIcon>
</badges>
<!-- This block prevents additional elements from interfering when mixing layouts. -->
<image name="backframe4" extra="false"></image>