From 58803fe8f72de295c251b8af20aa481716f84a2a Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Wed, 17 Aug 2022 17:07:52 +0200 Subject: [PATCH] Fixed an issue where the theme controlled opacity tag did not have any effect on rating elements. --- es-app/src/views/GamelistView.cpp | 1 + es-app/src/views/SystemView.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/es-app/src/views/GamelistView.cpp b/es-app/src/views/GamelistView.cpp index 18384cb7c..93998d1c2 100644 --- a/es-app/src/views/GamelistView.cpp +++ b/es-app/src/views/GamelistView.cpp @@ -263,6 +263,7 @@ void GamelistView::onThemeChanged(const std::shared_ptr& 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()); } } diff --git a/es-app/src/views/SystemView.cpp b/es-app/src/views/SystemView.cpp index 6e973d7d5..876a43341 100644 --- a/es-app/src/views/SystemView.cpp +++ b/es-app/src/views/SystemView.cpp @@ -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()); } }