mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-02-14 14:33:58 +00:00
Windows: initial gui help message uses the correct color
This commit is contained in:
@@ -211,13 +211,13 @@ void CaptureWidget::paintEvent(QPaintEvent *) {
|
||||
|
||||
QColor rectColor(m_uiColor);
|
||||
rectColor.setAlpha(180);
|
||||
painter.setBrush(QBrush(rectColor, Qt::SolidPattern));
|
||||
painter.drawRect(bRect);
|
||||
|
||||
// Draw the text:
|
||||
QColor textColor((CaptureButton::iconIsWhiteByColor(rectColor) ?
|
||||
Qt::white : Qt::black));
|
||||
|
||||
painter.setBrush(QBrush(rectColor, Qt::SolidPattern));
|
||||
painter.setPen(QPen(textColor));
|
||||
|
||||
painter.drawRect(bRect);
|
||||
painter.drawText(helpRect, Qt::AlignCenter, helpTxt);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user