diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-02-16 16:34:02 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-02-16 16:34:02 +0000 |
| commit | e13b8ee11ae4d5aeaa55b3211538f863fe3313ea (patch) | |
| tree | ab31009d4abc2ab6095129343fae59fe66fd1116 /src/ui/playlisttitlebar.cpp | |
| parent | 88c7e29849da8106f6e143f89f116e6f948fd7bf (diff) | |
| download | qmmp-e13b8ee11ae4d5aeaa55b3211538f863fe3313ea.tar.gz qmmp-e13b8ee11ae4d5aeaa55b3211538f863fe3313ea.tar.bz2 qmmp-e13b8ee11ae4d5aeaa55b3211538f863fe3313ea.zip | |
fixed shaded playlist background color
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@246 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/playlisttitlebar.cpp')
| -rw-r--r-- | src/ui/playlisttitlebar.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/ui/playlisttitlebar.cpp b/src/ui/playlisttitlebar.cpp index a583065ca..fead3509a 100644 --- a/src/ui/playlisttitlebar.cpp +++ b/src/ui/playlisttitlebar.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2007 by Ilya Kotov * + * Copyright (C) 2007-2008 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -129,15 +129,14 @@ void PlayListTitleBar::drawPixmap(int sx) } if (m_shaded) { - //draw text background - for (int i = 0; i < 47 + sx*5; ++i) - { - paint.drawPixmap(8+i*5,2,m_skin->getLetter(' ')); - paint.drawPixmap(8+i*5,6,m_skin->getLetter(' ')); - } + QColor col; + col.setNamedColor(QString(m_skin->getPLValue("mbbg"))); + paint.setBrush(QBrush(col)); + paint.setPen(col); + paint.drawRect(8,1, 235 + sx*25, 11); //draw text paint.setFont(m_font); - paint.setPen(QString(m_skin->getPLValue("normal"))); + paint.setPen(QString(m_skin->getPLValue("mbfg"))); paint.drawText(9, 11, m_truncatedText); } paint.end(); |
