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:
parent
82e1644d67
commit
e1c2a80e82
|
@ -43,9 +43,9 @@ void MicFeedbackWidget::paintEvent(QPaintEvent*)
|
||||||
QRect gradientRect(2, 2, gradientWidth, height() - 4);
|
QRect gradientRect(2, 2, gradientWidth, height() - 4);
|
||||||
|
|
||||||
QLinearGradient gradient(0, 0, width(), 0);
|
QLinearGradient gradient(0, 0, width(), 0);
|
||||||
gradient.setColorAt(0, Qt::red);
|
gradient.setColorAt(0, Qt::green);
|
||||||
gradient.setColorAt(0.5, Qt::yellow);
|
gradient.setColorAt(0.5, Qt::yellow);
|
||||||
gradient.setColorAt(1, Qt::green);
|
gradient.setColorAt(1, Qt::red);
|
||||||
painter.fillRect(gradientRect, gradient);
|
painter.fillRect(gradientRect, gradient);
|
||||||
|
|
||||||
float slice = width() / 5;
|
float slice = width() / 5;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user