Update background with luma and chroma ref for L C curves Color and Light

This commit is contained in:
Desmis
2020-07-15 11:38:03 +02:00
parent af0b83be81
commit 7ce4d0eb52
5 changed files with 75 additions and 1 deletions

View File

@@ -399,6 +399,25 @@ DiagonalCurveEditor* DiagonalCurveEditorSubGroup::addCurve(Glib::ustring curveLa
return newCE;
}
void DiagonalCurveEditorSubGroup::updateLocallabBackground(CurveEditor* ce)
{
if (ce == parent->displayedCurve) {
paramCurve->updateLocallabBackground(ce->locallabRef);
customCurve->updateLocallabBackground(ce->locallabRef);
NURBSCurve->updateLocallabBackground(ce->locallabRef);
}
}
void DiagonalCurveEditorSubGroup::restoreLocallabBackground()
{
if (parent->displayedCurve) {
paramCurve->updateLocallabBackground(parent->displayedCurve->locallabRef);
customCurve->updateLocallabBackground(parent->displayedCurve->locallabRef);
NURBSCurve->updateLocallabBackground(parent->displayedCurve->locallabRef);
}
}
/*
* Switch off the edit button
*/