Fixed an issue where the theme controlled opacity tag did not have any effect on rating elements.

This commit is contained in:
Leon Styhre 2022-08-17 17:07:52 +02:00
parent 93e0bfab5b
commit 58803fe8f7
2 changed files with 3 additions and 0 deletions

View file

@ -263,6 +263,7 @@ void GamelistView::onThemeChanged(const std::shared_ptr<ThemeData>& theme)
mRatingComponents.back()->setDefaultZIndex(45.0f);
mRatingComponents.back()->applyTheme(theme, "gamelist", element.first, ALL);
mRatingComponents.back()->setScrollHide(true);
mRatingComponents.back()->setOpacity(mRatingComponents.back()->getOpacity());
addChild(mRatingComponents.back().get());
}
}

View file

@ -556,6 +556,8 @@ void SystemView::populate()
elements.ratingComponents.back()->applyTheme(theme, "system", element.first,
ThemeFlags::ALL);
elements.ratingComponents.back()->setVisible(false);
elements.ratingComponents.back()->setOpacity(
elements.ratingComponents.back()->getOpacity());
elements.children.emplace_back(elements.ratingComponents.back().get());
}
}