From 93d1a5bae710d2eacf436e8ac055c7f6eb53b9e3 Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 17 May 2017 00:19:21 +0200 Subject: [PATCH] Value dial: improved sunken perspective --- sdrbase/gui/valuedial.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdrbase/gui/valuedial.cpp b/sdrbase/gui/valuedial.cpp index c16f083fd..12730ab61 100644 --- a/sdrbase/gui/valuedial.cpp +++ b/sdrbase/gui/valuedial.cpp @@ -195,12 +195,12 @@ void ValueDial::paintEvent(QPaintEvent*) painter.drawLine(width() - 2, 1, width() - 2, height() - 1); // dial borders - painter.setPen(m_colorMapper.getLightBorderColor()); - painter.drawLine(0, height() - 1, width() - 1, height() - 1); - painter.drawLine(width() - 1, height() - 1, width() - 1, 0); painter.setPen(m_colorMapper.getDarkBorderColor()); - painter.drawLine(0, 0, width() - 1, 0); + painter.drawLine(0, 0, width() - 2, 0); painter.drawLine(0, height() - 1, 0, 0); + painter.setPen(m_colorMapper.getLightBorderColor()); + painter.drawLine(1, height() - 1, width() - 1, height() - 1); + painter.drawLine(width() - 1, height() - 1, width() - 1, 0); if(m_hightlightedDigit >= 0) { painter.setPen(Qt::NoPen);