Commit a5de84ae authored by Frédéric Larue's avatar Frédéric Larue

Slight improvement of the GradientWidget rendering.

parent 25f90a57
......@@ -52,7 +52,7 @@ void GradientWidget::paintEvent( QPaintEvent *evt )
const int w = width();
const int h = height();
QColor color = this->palette().windowText().color();
QColor color = this->palette().dark().color();
QPainter painter;
painter.begin( this );
......@@ -136,10 +136,11 @@ void GradientWidget::paintEvent( QPaintEvent *evt )
painter.setOpacity( 0.5f );
painter.setPen( QPen(QColor(255,255,255),1.0f) );
painter.drawText( textX-1, textY , text );
painter.drawText( textX , textY-1, text );
painter.drawText( textX , textY+1, text );
painter.drawText( textX+1, textY , text );
painter.setOpacity( 0.25f );
painter.drawText( textX , textY-1, text );
painter.drawText( textX-1, textY , text );
painter.setOpacity( 1.0f );
painter.setPen( QPen(color,1.0f) );
painter.drawText( textX, textY, text );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment