diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-07-06 18:24:15 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2015-07-06 18:24:15 +0000 |
| commit | 36dc7e509e418919b289249768593ea7cc90afe0 (patch) | |
| tree | e215ffd6fa4c1761aa99793982bd512cbb78245e /src/plugins/Ui/skinned/textscroller.cpp | |
| parent | c254a219c2726a0b6a5b5e2cded7d322f3b80b4e (diff) | |
| download | qmmp-36dc7e509e418919b289249768593ea7cc90afe0.tar.gz qmmp-36dc7e509e418919b289249768593ea7cc90afe0.tar.bz2 qmmp-36dc7e509e418919b289249768593ea7cc90afe0.zip | |
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
Diffstat (limited to 'src/plugins/Ui/skinned/textscroller.cpp')
| -rw-r--r-- | src/plugins/Ui/skinned/textscroller.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |
