From 2b9308db277aa7f0aedeb08186544e015951270f Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 18 Feb 2013 10:51:03 -0500 Subject: [PATCH] Appearance of ab curves (see issue 1729) --- rtgui/labcurve.cc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/rtgui/labcurve.cc b/rtgui/labcurve.cc index 2208886c6..a66753a7d 100644 --- a/rtgui/labcurve.cc +++ b/rtgui/labcurve.cc @@ -91,11 +91,26 @@ LCurve::LCurve () : Gtk::VBox(), FoldableToolPanel(this) { M("TP_LABCURVE_CURVEEDITOR_A_RANGE1"), M("TP_LABCURVE_CURVEEDITOR_A_RANGE2"), M("TP_LABCURVE_CURVEEDITOR_A_RANGE3"), M("TP_LABCURVE_CURVEEDITOR_A_RANGE4") ); + //from green to magenta + milestones.clear(); + milestones.push_back( GradientMilestone(0., 0., 1., 0.) ); + milestones.push_back( GradientMilestone(1., 1., 0., 1.) ); + ashape->setBottomBarBgGradient(milestones); + ashape->setLeftBarBgGradient(milestones); + milestones.clear(); + bshape = static_cast(curveEditorG->addCurve(CT_Diagonal, "b")); bshape->setRangeLabels( M("TP_LABCURVE_CURVEEDITOR_B_RANGE1"), M("TP_LABCURVE_CURVEEDITOR_B_RANGE2"), M("TP_LABCURVE_CURVEEDITOR_B_RANGE3"), M("TP_LABCURVE_CURVEEDITOR_B_RANGE4") ); + //from blue to yellow + milestones.clear(); + milestones.push_back( GradientMilestone(0., 0., 0., 1.) ); + milestones.push_back( GradientMilestone(1., 1., 1., 0.) ); + bshape->setBottomBarBgGradient(milestones); + bshape->setLeftBarBgGradient(milestones); + milestones.clear(); curveEditorG->newLine(); // ------------------------------------------------ second line