Merge branch '63-add-badges-decals-e-g-for-favorites-completed-games-non-working-games-collections-and-folders' into 575-theme-add-a-modern-clean-switch-like-theme-as-an-official-theme-in-es-de-to-choose-from
|
@ -121,8 +121,6 @@ void DetailedGameListView::onThemeChanged(const std::shared_ptr<ThemeData>& them
|
||||||
POSITION | ThemeFlags::SIZE | Z_INDEX | ROTATION | VISIBLE);
|
POSITION | ThemeFlags::SIZE | Z_INDEX | ROTATION | VISIBLE);
|
||||||
mImage.applyTheme(theme, getName(), "md_image",
|
mImage.applyTheme(theme, getName(), "md_image",
|
||||||
POSITION | ThemeFlags::SIZE | Z_INDEX | ROTATION | VISIBLE);
|
POSITION | ThemeFlags::SIZE | Z_INDEX | ROTATION | VISIBLE);
|
||||||
mBadges.applyTheme(theme, getName(), "md_badges",
|
|
||||||
POSITION | ThemeFlags::SIZE | Z_INDEX | DIRECTION | VISIBLE);
|
|
||||||
mName.applyTheme(theme, getName(), "md_name", ALL);
|
mName.applyTheme(theme, getName(), "md_name", ALL);
|
||||||
|
|
||||||
initMDLabels();
|
initMDLabels();
|
||||||
|
|
|
@ -164,8 +164,6 @@ void VideoGameListView::onThemeChanged(const std::shared_ptr<ThemeData>& theme)
|
||||||
mVideo->applyTheme(theme, getName(), "md_video",
|
mVideo->applyTheme(theme, getName(), "md_video",
|
||||||
POSITION | ThemeFlags::SIZE | ThemeFlags::DELAY | Z_INDEX | ROTATION |
|
POSITION | ThemeFlags::SIZE | ThemeFlags::DELAY | Z_INDEX | ROTATION |
|
||||||
VISIBLE);
|
VISIBLE);
|
||||||
mBadges.applyTheme(theme, getName(), "md_badges",
|
|
||||||
POSITION | ThemeFlags::SIZE | Z_INDEX | DIRECTION | VISIBLE);
|
|
||||||
mName.applyTheme(theme, getName(), "md_name", ALL);
|
mName.applyTheme(theme, getName(), "md_name", ALL);
|
||||||
|
|
||||||
initMDLabels();
|
initMDLabels();
|
||||||
|
|
|
@ -51,13 +51,13 @@ private:
|
||||||
TextComponent mLblLastPlayed;
|
TextComponent mLblLastPlayed;
|
||||||
TextComponent mLblPlayCount;
|
TextComponent mLblPlayCount;
|
||||||
|
|
||||||
BadgesComponent mBadges;
|
|
||||||
RatingComponent mRating;
|
RatingComponent mRating;
|
||||||
DateTimeComponent mReleaseDate;
|
DateTimeComponent mReleaseDate;
|
||||||
TextComponent mDeveloper;
|
TextComponent mDeveloper;
|
||||||
TextComponent mPublisher;
|
TextComponent mPublisher;
|
||||||
TextComponent mGenre;
|
TextComponent mGenre;
|
||||||
TextComponent mPlayers;
|
TextComponent mPlayers;
|
||||||
|
BadgesComponent mBadges;
|
||||||
DateTimeComponent mLastPlayed;
|
DateTimeComponent mLastPlayed;
|
||||||
TextComponent mPlayCount;
|
TextComponent mPlayCount;
|
||||||
TextComponent mName;
|
TextComponent mName;
|
||||||
|
|
|
@ -102,7 +102,7 @@ void FlexboxComponent::computeLayout()
|
||||||
float anchorYStart = anchorY;
|
float anchorYStart = anchorY;
|
||||||
|
|
||||||
// Compute total container size.
|
// Compute total container size.
|
||||||
glm::vec2 totalSize = {mItemMargin.x, mItemMargin.y};
|
glm::vec2 totalSize = {-mItemMargin.x, -mItemMargin.y};
|
||||||
if (mDirection == "row") {
|
if (mDirection == "row") {
|
||||||
totalSize.x += (mItemMargin.x + mItemWidth) * mItemsPerLine;
|
totalSize.x += (mItemMargin.x + mItemWidth) * mItemsPerLine;
|
||||||
totalSize.y += (mItemMargin.y + maxItemSize.y) * nLines;
|
totalSize.y += (mItemMargin.y + maxItemSize.y) * nLines;
|
||||||
|
@ -121,8 +121,12 @@ void FlexboxComponent::computeLayout()
|
||||||
float y = anchorY - anchorOriginY * size.y;
|
float y = anchorY - anchorOriginY * size.y;
|
||||||
|
|
||||||
// Apply item margin.
|
// Apply item margin.
|
||||||
x += mItemMargin.x * (directionLine.x >= 0.0f ? 1.0f : -1.0f);
|
if ((mDirection == "row" && i % std::max(1, (int) mItemsPerLine) != 0) ||
|
||||||
y += mItemMargin.y * (directionLine.y >= 0.0f ? 1.0f : -1.0f);
|
(mDirection == "column" && i >= (int) mItemsPerLine))
|
||||||
|
x += mItemMargin.x * (directionLine.x >= 0.0f ? 1.0f : -1.0f);
|
||||||
|
if ((mDirection == "column" && i % std::max(1, (int) mItemsPerLine) != 0) ||
|
||||||
|
(mDirection == "row" && i >= (int) mItemsPerLine))
|
||||||
|
y += mItemMargin.y * (directionLine.y >= 0.0f ? 1.0f : -1.0f);
|
||||||
|
|
||||||
// Apply alignment
|
// Apply alignment
|
||||||
if (mAlign == ITEM_ALIGN_END) {
|
if (mAlign == ITEM_ALIGN_END) {
|
||||||
|
|
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 68 KiB |
|
@ -244,7 +244,7 @@ based on: 'recalbox-multi' by the Recalbox community
|
||||||
<direction>row</direction>
|
<direction>row</direction>
|
||||||
<align>start</align>
|
<align>start</align>
|
||||||
<itemsPerLine>2</itemsPerLine>
|
<itemsPerLine>2</itemsPerLine>
|
||||||
<itemMargin>10 5</itemMargin>
|
<itemMargin>5 5</itemMargin>
|
||||||
<itemWidth>.035</itemWidth>
|
<itemWidth>.035</itemWidth>
|
||||||
|
|
||||||
<!-- badges properties -->
|
<!-- badges properties -->
|
||||||
|
|