mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Removed the unnecessary applyTheme function from NinePatchComponent.
This commit is contained in:
parent
b43c8cdd55
commit
cfd2f7e4e5
|
@ -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"));
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue