1 #include "shapes/paint/solid_color.hpp"
2 #include "container_component.hpp"
3 #include "renderer.hpp"
4 #include "shapes/paint/color.hpp"
8 StatusCode SolidColor::onAddedDirty(CoreContext* context)
10 StatusCode code = Super::onAddedDirty(context);
11 if (code != StatusCode::Ok)
15 if (!initPaintMutator(parent()))
17 return StatusCode::MissingObject;
19 renderOpacityChanged();
20 return StatusCode::Ok;
23 void SolidColor::renderOpacityChanged()
25 if (renderPaint() == nullptr)
30 colorModulateOpacity((unsigned int)colorValue(), renderOpacity()));
33 void SolidColor::colorValueChanged() { renderOpacityChanged(); }