replace png badges by svg
|
@ -20,10 +20,10 @@ BadgesComponent::BadgesComponent(Window* window)
|
||||||
mSlots = {SLOT_FAVORITE, SLOT_COMPLETED, SLOT_KIDS, SLOT_BROKEN};
|
mSlots = {SLOT_FAVORITE, SLOT_COMPLETED, SLOT_KIDS, SLOT_BROKEN};
|
||||||
|
|
||||||
mBadgeIcons = std::map<std::string, std::string>();
|
mBadgeIcons = std::map<std::string, std::string>();
|
||||||
mBadgeIcons[SLOT_FAVORITE] = ":/graphics/badge_favorite.png";
|
mBadgeIcons[SLOT_FAVORITE] = ":/graphics/badge_favorite.svg";
|
||||||
mBadgeIcons[SLOT_COMPLETED] = ":/graphics/badge_completed.png";
|
mBadgeIcons[SLOT_COMPLETED] = ":/graphics/badge_completed.svg";
|
||||||
mBadgeIcons[SLOT_KIDS] = ":/graphics/badge_kidgame.png";
|
mBadgeIcons[SLOT_KIDS] = ":/graphics/badge_kidgame.svg";
|
||||||
mBadgeIcons[SLOT_BROKEN] = ":/graphics/badge_broken.png";
|
mBadgeIcons[SLOT_BROKEN] = ":/graphics/badge_broken.svg";
|
||||||
|
|
||||||
// Create the child ImageComponent for every badge.
|
// Create the child ImageComponent for every badge.
|
||||||
mImageComponents = std::map<std::string, ImageComponent>();
|
mImageComponents = std::map<std::string, ImageComponent>();
|
||||||
|
|
Before Width: | Height: | Size: 34 KiB |
202
resources/graphics/badge_broken.svg
Normal file
After Width: | Height: | Size: 285 KiB |
Before Width: | Height: | Size: 31 KiB |
186
resources/graphics/badge_completed.svg
Normal file
After Width: | Height: | Size: 284 KiB |
Before Width: | Height: | Size: 30 KiB |
186
resources/graphics/badge_favorite.svg
Normal file
After Width: | Height: | Size: 284 KiB |
Before Width: | Height: | Size: 36 KiB |
186
resources/graphics/badge_kidgame.svg
Normal file
After Width: | Height: | Size: 284 KiB |
|
@ -245,14 +245,14 @@ based on: 'recalbox-multi' by the Recalbox community
|
||||||
<align>start</align>
|
<align>start</align>
|
||||||
<itemsPerLine>2</itemsPerLine>
|
<itemsPerLine>2</itemsPerLine>
|
||||||
<itemMargin>10 5</itemMargin>
|
<itemMargin>10 5</itemMargin>
|
||||||
<itemWidth>.05</itemWidth>
|
<itemWidth>.035</itemWidth>
|
||||||
|
|
||||||
<!-- badges properties -->
|
<!-- badges properties -->
|
||||||
<slots>favorite completed kidgame broken</slots>
|
<slots>favorite completed kidgame broken</slots>
|
||||||
<customBadgeIcon badge="favorite">:/graphics/badge_favorite.png</customBadgeIcon>
|
<customBadgeIcon badge="favorite">:/graphics/badge_favorite.svg</customBadgeIcon>
|
||||||
<customBadgeIcon badge="completed">:/graphics/badge_completed.png</customBadgeIcon>
|
<customBadgeIcon badge="completed">:/graphics/badge_completed.svg</customBadgeIcon>
|
||||||
<customBadgeIcon badge="kidgame">:/graphics/badge_kidgame.png</customBadgeIcon>
|
<customBadgeIcon badge="kidgame">:/graphics/badge_kidgame.svg</customBadgeIcon>
|
||||||
<customBadgeIcon badge="broken">:/graphics/badge_broken.png</customBadgeIcon>
|
<customBadgeIcon badge="broken">:/graphics/badge_broken.svg</customBadgeIcon>
|
||||||
</badges>
|
</badges>
|
||||||
<!-- This block prevents additional elements from interfering when mixing layouts. -->
|
<!-- This block prevents additional elements from interfering when mixing layouts. -->
|
||||||
<image name="backframe4" extra="false"></image>
|
<image name="backframe4" extra="false"></image>
|
||||||
|
|