background fixed
This commit is contained in:
parent
381540140c
commit
0a0c3dfb17
@ -18,6 +18,7 @@
|
|||||||
#include <QskSetup.h>
|
#include <QskSetup.h>
|
||||||
#include <QskSkin.h>
|
#include <QskSkin.h>
|
||||||
#include <QskTabView.h>
|
#include <QskTabView.h>
|
||||||
|
#include <QskBoxShapeMetrics.h>
|
||||||
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QVariant>
|
#include <QVariant>
|
||||||
@ -34,9 +35,11 @@ class GraphicLabel : public QskGraphicLabel
|
|||||||
GraphicLabel( const QskGraphic& graphic, QQuickItem* parent = nullptr )
|
GraphicLabel( const QskGraphic& graphic, QQuickItem* parent = nullptr )
|
||||||
: QskGraphicLabel( graphic, parent )
|
: QskGraphicLabel( graphic, parent )
|
||||||
{
|
{
|
||||||
setAlignment( Qt::AlignCenter );
|
setMargins( 10 );
|
||||||
setAutoFillBackground( true );
|
setPanel( true );
|
||||||
|
|
||||||
|
setBoxShapeHint( Panel, 8 );
|
||||||
|
setAlignment( Qt::AlignCenter );
|
||||||
setDarknessMode( false );
|
setDarknessMode( false );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -59,8 +62,7 @@ class GraphicLabel : public QskGraphicLabel
|
|||||||
const int duration = 500;
|
const int duration = 500;
|
||||||
|
|
||||||
const QskGradient oldGradient = background();
|
const QskGradient oldGradient = background();
|
||||||
|
setGradientHint( Panel, gradient );
|
||||||
setBackground( gradient );
|
|
||||||
|
|
||||||
// finally setup a smooth transition manually
|
// finally setup a smooth transition manually
|
||||||
startTransition( QskAspect::Control | QskAspect::Color, duration,
|
startTransition( QskAspect::Control | QskAspect::Color, duration,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user