mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 17:45:38 +00:00
Fixed an issue where SVG rating components would not render immediately.
This commit is contained in:
parent
652adc41d8
commit
b12a68603d
|
@ -210,7 +210,6 @@ bool RatingComponent::input(InputConfig* config, Input input)
|
||||||
void RatingComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
|
void RatingComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
|
||||||
const std::string& view, const std::string& element, unsigned int properties)
|
const std::string& view, const std::string& element, unsigned int properties)
|
||||||
{
|
{
|
||||||
GuiComponent::applyTheme(theme, view, element, properties);
|
|
||||||
using namespace ThemeFlags;
|
using namespace ThemeFlags;
|
||||||
|
|
||||||
const ThemeData::ThemeElement* elem = theme->getElement(view, element, "rating");
|
const ThemeData::ThemeElement* elem = theme->getElement(view, element, "rating");
|
||||||
|
@ -237,6 +236,8 @@ void RatingComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
|
||||||
mUnfilledColor = mColorShift;
|
mUnfilledColor = mColorShift;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GuiComponent::applyTheme(theme, view, element, properties);
|
||||||
|
|
||||||
if (imgChanged)
|
if (imgChanged)
|
||||||
onSizeChanged();
|
onSizeChanged();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue