From 36dc7e509e418919b289249768593ea7cc90afe0 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 6 Jul 2015 18:24:15 +0000 Subject: fixed text scroller colors (#780) git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5234 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Ui/skinned/textscroller.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/Ui/skinned/textscroller.cpp') diff --git a/src/plugins/Ui/skinned/textscroller.cpp b/src/plugins/Ui/skinned/textscroller.cpp index dc7020aa9..9ec92093c 100644 --- a/src/plugins/Ui/skinned/textscroller.cpp +++ b/src/plugins/Ui/skinned/textscroller.cpp @@ -101,8 +101,8 @@ void TextScroller::addOffset() void TextScroller::updateSkin() { - m_color.setNamedColor(m_skin->getPLValue("mbfg")); setCursor(m_skin->getCursor(Skin::CUR_SONGNAME)); + m_color = m_skin->getMainColor(Skin::MW_FOREGROUND); QSettings settings(Qmmp::configFile(), QSettings::IniFormat); m_bitmap = settings.value("Skinned/bitmap_font", false).toBool(); m_ratio = m_skin->ratio(); @@ -265,7 +265,7 @@ void TextScroller::preparePixmap(const QString &text, bool scrollable) if(m_transparencyAction->isChecked()) m_pixmap.fill(Qt::transparent); else - m_pixmap.fill(QString(Skin::instance()->getPLValue("mbbg"))); + m_pixmap.fill(m_skin->getMainColor(Skin::MW_BACKGROUND)); QPainter painter(&m_pixmap); painter.setPen(m_color); painter.setFont(m_font); @@ -282,7 +282,7 @@ void TextScroller::preparePixmap(const QString &text, bool scrollable) if(m_transparencyAction->isChecked()) m_pixmap.fill(Qt::transparent); else - m_pixmap.fill(QString(Skin::instance()->getPLValue("mbbg"))); + m_pixmap.fill(m_skin->getMainColor(Skin::MW_BACKGROUND)); QPainter painter(&m_pixmap); painter.setPen(m_color); painter.setFont(m_font); -- cgit v1.2.3-13-gbd6f