Value dial: improved sunken perspective

This commit is contained in:
f4exb 2017-05-17 00:19:21 +02:00
parent 30696762df
commit 93d1a5bae7
1 changed files with 4 additions and 4 deletions

View File

@ -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);