Remove dark background

This commit is contained in:
Craig Drummond
2016-08-26 16:52:43 +01:00
parent 8c36f2b2ad
commit 4cc3e86fb6
2 changed files with 0 additions and 14 deletions

View File

@@ -200,19 +200,6 @@ bool TitleWidget::eventFilter(QObject *o, QEvent *event)
return QWidget::eventFilter(o, event);
}
static bool isDark(const QColor &col) {
return col.red()<64 && col.green()<64 && col.blue()<64;
}
void TitleWidget::paintEvent(QPaintEvent *ev)
{
QPainter p(this);
QColor col(isDark(palette().color(QPalette::Window)) ? Qt::white : Qt::black);
col.setAlphaF(0.06);
p.fillRect(rect(), col);
QWidget::paintEvent(ev);
}
void TitleWidget::coverRetrieved(const Song &s, const QImage &img, const QString &file)
{
Q_UNUSED(file);