diff --git a/src/components/RatingComponent.cpp b/src/components/RatingComponent.cpp index df77bb642..daa00e863 100644 --- a/src/components/RatingComponent.cpp +++ b/src/components/RatingComponent.cpp @@ -145,10 +145,20 @@ void RatingComponent::applyTheme(const std::shared_ptr& theme, const if(!elem) return; + bool imgChanged = false; if(properties & PATH && elem->has("filledPath")) + { mFilledTexture = TextureResource::get(elem->get("filledPath"), true); + imgChanged = true; + } if(properties & PATH && elem->has("unfilledPath")) + { mUnfilledTexture = TextureResource::get(elem->get("unfilledPath"), true); + imgChanged = true; + } + + if(imgChanged) + onSizeChanged(); } std::vector RatingComponent::getHelpPrompts()