From 0f34fd437efb936ef29ac91186321aa7251fbfb1 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Tue, 23 May 2023 11:22:33 +0200 Subject: Massive changes in initial port away from Qt. --- divergentcolorscale.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'divergentcolorscale.cpp') diff --git a/divergentcolorscale.cpp b/divergentcolorscale.cpp index 1d92b53..1bc3f7b 100644 --- a/divergentcolorscale.cpp +++ b/divergentcolorscale.cpp @@ -2,9 +2,9 @@ #include -DivergentColorScale::DivergentColorScale(const QColor &color1, - const QColor &colorMiddle, - const QColor &color2) +DivergentColorScale::DivergentColorScale(const Color &color1, + const Color &colorMiddle, + const Color &color2) : ColorScale{{color1, colorMiddle, color2}} { } @@ -31,9 +31,9 @@ DivergentColorScale DivergentColorScale::builtin(BuiltinDivergentColorScale scal { switch (scale) { case RedGrayBlue: - return DivergentColorScale(QColor(68, 68, 221), - QColor(189, 189, 189), - QColor(221, 68, 68)); + return DivergentColorScale(Color(68, 68, 221), + Color(189, 189, 189), + Color(221, 68, 68)); /*return ContinuousColorScale{ QColor(221, 68, 68), QColor(220, 69, 68), @@ -302,9 +302,9 @@ DivergentColorScale *DivergentColorScale::builtin(BuiltinDivergentColorScale sca { switch (scale) { case RedGrayBlue: - return new DivergentColorScale(QColor(68, 68, 221), - QColor(189, 189, 189), - QColor(221, 68, 68)); + return new DivergentColorScale(Color(68, 68, 221), + Color(189, 189, 189), + Color(221, 68, 68)); default: return DivergentColorScale::builtin(DivergentColorScale::RedGrayBlue, nullptr); } -- cgit v1.2.3