Commit 3f26cbc8 authored by Hugo Pereira Da Costa's avatar Hugo Pereira Da Costa
Browse files

fixed colors to ::roundCorner gradient.

CCBUG: 273848
parent 69534637
......@@ -106,7 +106,8 @@ namespace Oxygen
w = w->parentWidget();
}
if ( clipRect.isValid() ) {
if ( clipRect.isValid() )
{
p->save();
p->setClipRegion( clipRect,Qt::IntersectClip );
}
......@@ -199,9 +200,8 @@ namespace Oxygen
p.setPen( Qt::NoPen );
QLinearGradient lg = QLinearGradient( 0.0, size-4.5, 0.0, size+4.5 );
lg.setColorAt( 0.0, calcLightColor( backgroundTopColor( color ) ) );
lg.setColorAt( 0.50, calcLightColor( backgroundTopColor( color ) ) );
lg.setColorAt( 0.51, backgroundBottomColor( color ) );
lg.setColorAt( 1.0, backgroundBottomColor( color ) );
// draw ellipse.
p.setBrush( lg );
......
Supports Markdown
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