aboutsummaryrefslogtreecommitdiff
path: root/divergentcolorscale.cpp
diff options
context:
space:
mode:
authorSamuel Fadel <samuel@nihil.ws>2023-05-23 11:22:33 +0200
committerSamuel Fadel <samuel@nihil.ws>2023-05-23 11:22:33 +0200
commit0f34fd437efb936ef29ac91186321aa7251fbfb1 (patch)
tree271e994828f4bb19c35b2630f2705cb64b8d4552 /divergentcolorscale.cpp
parentbedf6936885694688ddb8bd3452f6bd68ef8d29c (diff)
Massive changes in initial port away from Qt.
Diffstat (limited to 'divergentcolorscale.cpp')
-rw-r--r--divergentcolorscale.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/divergentcolorscale.cpp b/divergentcolorscale.cpp
index 1d92b53..1bc3f7b 100644
--- a/divergentcolorscale.cpp
+++ b/divergentcolorscale.cpp
@@ -2,9 +2,9 @@
#include <cmath>
-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);
}