Removed the unnecessary applyTheme function from NinePatchComponent.

This commit is contained in:
Leon Styhre 2022-11-03 15:44:52 +01:00
parent b43c8cdd55
commit cfd2f7e4e5
2 changed files with 0 additions and 22 deletions

View file

@ -170,20 +170,3 @@ void NinePatchComponent::setCenterColor(unsigned int centerColor)
mCenterColor = centerColor;
updateColors();
}
void NinePatchComponent::applyTheme(const std::shared_ptr<ThemeData>& 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, "ninepatch")};
if (!elem)
return;
if (properties & PATH && elem->has("path"))
setImagePath(elem->get<std::string>("path"));
}

View file

@ -45,11 +45,6 @@ public:
// Apply a color shift to the "center" part of the ninepatch.
void setCenterColor(unsigned int centerColor);
virtual void applyTheme(const std::shared_ptr<ThemeData>& theme,
const std::string& view,
const std::string& element,
unsigned int properties) override;
const glm::vec2& getCornerSize() const { return mCornerSize; }
void setCornerSize(const glm::vec2& size)
{