Browse Source

switch colors in mic gain indicator gradient

pull/2415/head
Nils Fenner 10 years ago
parent
commit
e1c2a80e82
No known key found for this signature in database
GPG Key ID: 9591A163FF9BE04C
  1. 4
      src/widget/tool/micfeedbackwidget.cpp

4
src/widget/tool/micfeedbackwidget.cpp

@ -43,9 +43,9 @@ void MicFeedbackWidget::paintEvent(QPaintEvent*) @@ -43,9 +43,9 @@ void MicFeedbackWidget::paintEvent(QPaintEvent*)
QRect gradientRect(2, 2, gradientWidth, height() - 4);
QLinearGradient gradient(0, 0, width(), 0);
gradient.setColorAt(0, Qt::red);
gradient.setColorAt(0, Qt::green);
gradient.setColorAt(0.5, Qt::yellow);
gradient.setColorAt(1, Qt::green);
gradient.setColorAt(1, Qt::red);
painter.fillRect(gradientRect, gradient);
float slice = width() / 5;

Loading…
Cancel
Save