summaryrefslogtreecommitdiff
path: root/muse2
diff options
context:
space:
mode:
authorRobert Jonsson <spamatica@gmail.com>2011-03-09 21:14:57 +0000
committerRobert Jonsson <spamatica@gmail.com>2011-03-09 21:14:57 +0000
commitcada6a202543d0f3f5ac02b4b52b9f17fda038bf (patch)
treecae74049c7e2d56c6a31b53d615bd8458c59efd4 /muse2
parent2cbc06dda31a6f076be42ef075b4a9e14a21f418 (diff)
lighter graident
Diffstat (limited to 'muse2')
-rw-r--r--muse2/muse/arranger/pcanvas.cpp38
1 files changed, 22 insertions, 16 deletions
diff --git a/muse2/muse/arranger/pcanvas.cpp b/muse2/muse/arranger/pcanvas.cpp
index cd05b047..6bd35cb8 100644
--- a/muse2/muse/arranger/pcanvas.cpp
+++ b/muse2/muse/arranger/pcanvas.cpp
@@ -1509,8 +1509,8 @@ void PartCanvas::drawItem(QPainter& p, const CItem* item, const QRect& rect)
QColor c(Qt::white);
c.setAlpha(config.globalAlphaBlend);
QLinearGradient gradient(r.topLeft(), r.bottomLeft());
- gradient.setColorAt(0, c);
- gradient.setColorAt(1, c.darker());
+ gradient.setColorAt(0, c.lighter());
+ gradient.setColorAt(1, c);
QBrush cc(gradient);
p.setBrush(cc);
@@ -1524,8 +1524,8 @@ void PartCanvas::drawItem(QPainter& p, const CItem* item, const QRect& rect)
QColor c(Qt::gray);
c.setAlpha(config.globalAlphaBlend);
QLinearGradient gradient(r.topLeft(), r.bottomLeft());
- gradient.setColorAt(0, c);
- gradient.setColorAt(1, c.darker());
+ gradient.setColorAt(0, c.lighter());
+ gradient.setColorAt(1, c);
QBrush cc(gradient);
p.setBrush(cc);
@@ -1550,8 +1550,8 @@ void PartCanvas::drawItem(QPainter& p, const CItem* item, const QRect& rect)
QColor c(Qt::black);
c.setAlpha(config.globalAlphaBlend);
QLinearGradient gradient(r.topLeft(), r.bottomLeft());
- gradient.setColorAt(0, c);
- gradient.setColorAt(1, c.darker());
+ gradient.setColorAt(0, c.lighter());
+ gradient.setColorAt(1, c);
QBrush cc(gradient);
p.setBrush(cc);
p.drawRect(r);
@@ -1568,8 +1568,8 @@ void PartCanvas::drawItem(QPainter& p, const CItem* item, const QRect& rect)
QColor c(config.partColors[i]);
c.setAlpha(config.globalAlphaBlend);
QLinearGradient gradient(r.topLeft(), r.bottomLeft());
- gradient.setColorAt(0, c);
- gradient.setColorAt(1, c.darker());
+ gradient.setColorAt(0, c.lighter());
+ gradient.setColorAt(1, c);
QBrush cc(gradient);
p.setBrush(cc);
@@ -2978,12 +2978,18 @@ void PartCanvas::drawTopItem(QPainter& p, const QRect& rect)
int startx = mapx(startPos);
int width = mapx(song->cpos()) - mapx(startPos);
- p.fillRect(startx,yPos, width, track->height(), config.partColors[0]);
- p.setPen(Qt::black);
- p.drawLine(startx,yPos,startx+width, yPos);
- p.drawLine(startx,yPos+1,startx+width, yPos+1);
- p.drawLine(startx,yPos+track->height(),startx+width, yPos+track->height());
- p.drawLine(startx,yPos+track->height()-1,startx+width, yPos+track->height()-1);
+ QPen pen(Qt::black, 0, Qt::SolidLine);
+ p.setPen(pen);
+
+ QColor c(config.partColors[0]);
+ c.setAlpha(config.globalAlphaBlend);
+ QLinearGradient gradient(QPoint(0,0), QPoint(0,track->height()));
+ gradient.setColorAt(0, c.lighter());
+ gradient.setColorAt(1, c);
+ QBrush cc(gradient);
+ p.setBrush(cc);
+
+ p.drawRect(startx,yPos, width, track->height());
}
}
yPos+=track->height();
@@ -3008,8 +3014,8 @@ void PartCanvas::drawAudioTrack(QPainter& p, const QRect& r, AudioTrack* /* t */
QColor c(Qt::gray);
c.setAlpha(config.globalAlphaBlend);
QLinearGradient gradient(r.topLeft(), r.bottomLeft());
- gradient.setColorAt(0, c);
- gradient.setColorAt(1, c.darker());
+ gradient.setColorAt(0, c.lighter());
+ gradient.setColorAt(1, c);
QBrush cc(gradient);
p.setBrush(cc);
p.drawRect(r);