1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-07-25 11:34:09 -04:00

New value dial color schemes: make the background a little bit darker and mark an embossed border

This commit is contained in:
f4exb
2017-05-16 20:21:32 +02:00
parent d3a22638e4
commit 1bcb38038a
3 changed files with 48 additions and 18 deletions
+8
View File
@@ -194,6 +194,14 @@ void ValueDial::paintEvent(QPaintEvent*)
painter.drawLine(1, 1, 1, height() - 1);
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, height() - 1, 0, 0);
if(m_hightlightedDigit >= 0) {
painter.setPen(Qt::NoPen);
painter.setBrush(m_colorMapper.getHighlightColor());