Commit ed1612a3 authored by Aloshi's avatar Aloshi

Fixed RatingComponent theme image path changes not triggering a proper resize...

Fixed RatingComponent theme image path changes not triggering a proper resize (making pixelized SVGs).
parent 2f02ebea
......@@ -145,10 +145,20 @@ void RatingComponent::applyTheme(const std::shared_ptr<ThemeData>& theme, const
if(!elem)
return;
bool imgChanged = false;
if(properties & PATH && elem->has("filledPath"))
{
mFilledTexture = TextureResource::get(elem->get<std::string>("filledPath"), true);
imgChanged = true;
}
if(properties & PATH && elem->has("unfilledPath"))
{
mUnfilledTexture = TextureResource::get(elem->get<std::string>("unfilledPath"), true);
imgChanged = true;
}
if(imgChanged)
onSizeChanged();
}
std::vector<HelpPrompt> RatingComponent::getHelpPrompts()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment