Remove dark background
This commit is contained in:
committed by
Craig Drummond
parent
ee7c3864cb
commit
59d86a4ac4
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user