From 72c1f103e28247c7099912c1c71ca95bcc7818b7 Mon Sep 17 00:00:00 2001 From: Jeremy Bullock Date: Jun 05 2017 01:54:53 +0000 Subject: Fix for pairfield drawing with new themes (#1246) * Clean pairField drawing --- diff --git a/toonz/sources/toonzqt/doublepairfield.cpp b/toonz/sources/toonzqt/doublepairfield.cpp index afdc2d6..89aaecf 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 3d2cfe8..0c1dd50 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);