mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-21 19:55:20 -05:00
Try new colors for level meter: darker green for normal, dark orange for too low.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7599 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
ea396ef07f
commit
5babb1c942
@ -57,12 +57,12 @@ void MeterWidget::paintEvent (QPaintEvent * event)
|
||||
auto const& target = contentsRect ();
|
||||
QRect r {QPoint {target.left (), static_cast<int> (target.top () + target.height () - m_signal / (double)MAXDB * target.height ())}
|
||||
, QPoint {target.right (), target.bottom ()}};
|
||||
p.setBrush (QColor {Qt::green});
|
||||
p.setBrush (QColor(85,170,85));
|
||||
if (m_sigPeak > 85) {
|
||||
p.setBrush(Qt::red);
|
||||
}
|
||||
else if (m_noisePeak < 15) {
|
||||
p.setBrush(Qt::yellow);
|
||||
p.setBrush(QColor(232,81,0));
|
||||
}
|
||||
p.drawRect (r);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user