mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-27 20:52:25 -04:00
Value dial: improved sunken perspective
This commit is contained in:
parent
30696762df
commit
93d1a5bae7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user