Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Fix for pairfield drawing with new themes (#1246)

Jeremy Bullock72c1f103e282
diff --git a/toonz/sources/toonzqt/doublepairfield.cpp b/toonz/sources/toonzqt/doublepairfield.cpp
index afdc2d6dd..89aaecf5f 100644
--- a/toonz/sources/toonzqt/doublepairfield.cpp
+++ b/toonz/sources/toonzqt/doublepairfield.cpp
@@ -98,19 +98,8 @@ void DoubleValuePairField::paintEvent(QPaintEvent *) {
int x1 = value2pos(m_maxValue);
int y = height() / 2;
- p.setPen(getLightLineColor());
+ p.setPen(QPen(getDarkLineColor(), 4));
p.drawLine(x0 - 1, y, x1, y);
- p.setPen(getLightLineEdgeColor());
- p.drawPoint(x1 + 1, y);
- p.drawPoint(x1 + 1, y - 1);
- p.drawPoint(x1 + 1, y - 2);
- p.drawPoint(x1 + 1, y - 3);
- p.setPen(getMiddleLineColor());
- p.drawLine(x0, y - 2, x1 - 1, y - 2);
- p.setPen(getDarkLineColor());
- p.drawLine(x0 - 1, y - 3, x1, y - 3);
- p.drawPoint(x0 - 1, y - 1);
- p.drawPoint(x0 - 1, y - 2);
p.setPen(Qt::black);
diff --git a/toonz/sources/toonzqt/intpairfield.cpp b/toonz/sources/toonzqt/intpairfield.cpp
index 3d2cfe8a5..0c1dd5045 100644
--- a/toonz/sources/toonzqt/intpairfield.cpp
+++ b/toonz/sources/toonzqt/intpairfield.cpp
@@ -94,19 +94,8 @@ void IntPairField::paintEvent(QPaintEvent *) {
int x1 = value2pos(m_maxValue);
int y = height() / 2;
- p.setPen(getLightLineColor());
+ p.setPen(QPen(getDarkLineColor(), 4));
p.drawLine(x0 - 1, y, x1, y);
- p.setPen(getLightLineEdgeColor());
- p.drawPoint(x1 + 1, y);
- p.drawPoint(x1 + 1, y - 1);
- p.drawPoint(x1 + 1, y - 2);
- p.drawPoint(x1 + 1, y - 3);
- p.setPen(getMiddleLineColor());
- p.drawLine(x0, y - 2, x1 - 1, y - 2);
- p.setPen(getDarkLineColor());
- p.drawLine(x0 - 1, y - 3, x1, y - 3);
- p.drawPoint(x0 - 1, y - 1);
- p.drawPoint(x0 - 1, y - 2);
p.setPen(Qt::black);