Remove dark background

This commit is contained in:
Craig Drummond
2016-08-26 16:52:43 +01:00
committed by Craig Drummond
parent ee7c3864cb
commit 59d86a4ac4
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);

View File

@@ -40,7 +40,6 @@ public:
virtual ~TitleWidget() { }
void update(const Song &sng, const QIcon &icon, const QString &text, const QString &sub, bool showControls=false);
bool eventFilter(QObject *obj, QEvent *event);
void paintEvent(QPaintEvent *ev);
Q_SIGNALS:
void clicked();