1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

switch colors in mic gain indicator gradient

This commit is contained in:
Nils Fenner 2015-10-20 23:14:37 +02:00
parent 82e1644d67
commit e1c2a80e82
No known key found for this signature in database
GPG Key ID: 9591A163FF9BE04C

View File

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