From b12a68603d295c1c20fc69d07c1f7f573c09cf56 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 13 Mar 2021 11:46:19 +0100 Subject: [PATCH] Fixed an issue where SVG rating components would not render immediately. --- es-core/src/components/RatingComponent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/es-core/src/components/RatingComponent.cpp b/es-core/src/components/RatingComponent.cpp index ff3163ba8..71bf81301 100644 --- a/es-core/src/components/RatingComponent.cpp +++ b/es-core/src/components/RatingComponent.cpp @@ -210,7 +210,6 @@ bool RatingComponent::input(InputConfig* config, Input input) void RatingComponent::applyTheme(const std::shared_ptr& theme, const std::string& view, const std::string& element, unsigned int properties) { - GuiComponent::applyTheme(theme, view, element, properties); using namespace ThemeFlags; const ThemeData::ThemeElement* elem = theme->getElement(view, element, "rating"); @@ -237,6 +236,8 @@ void RatingComponent::applyTheme(const std::shared_ptr& theme, mUnfilledColor = mColorShift; } + GuiComponent::applyTheme(theme, view, element, properties); + if (imgChanged) onSizeChanged(); }