code prepared for gradients branch

This commit is contained in:
Uwe Rathmann 2022-10-21 16:45:58 +02:00
parent d9976527fd
commit 8ba6085081
1 changed files with 2 additions and 2 deletions

View File

@ -50,12 +50,12 @@ class GraphicLabel : public QskGraphicLabel
QskGradient gradient;
if ( on )
{
gradient.setColor( qRgb( 40, 40, 40 ) );
gradient = QskGradient( qRgb( 40, 40, 40 ) );
setGraphicRole( Inverted );
}
else
{
gradient.setColor( QskRgb::Wheat );
gradient = QskGradient( QskRgb::Wheat );
setGraphicRole( Normal );
}