diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index 74e4b3aa4d..447437f5c2 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -572,6 +572,7 @@ namespace Oxygen void Client::renderWindowBackground( QPainter* painter, const QRect& rect, const QWidget* widget, const QPalette& palette ) const { + // window background if( configuration().blendColor() == Configuration::NoBlending || ( configuration().blendColor() == Configuration::BlendFromStyle && @@ -604,6 +605,25 @@ namespace Oxygen } + + { + // background pixmap + int offset = layoutMetric( LM_OuterPaddingTop ); + + // radial gradient positionning + int height = 64 - Configuration::ButtonDefault; + if( !hideTitleBar() ) height += configuration().buttonSize(); + if( isMaximized() ) offset -= 3; + + // background pixmap + QPoint backgroundPixmapOffset( layoutMetric( LM_OuterPaddingLeft ) + layoutMetric( LM_BorderLeft ), 0 ); + helper().setBackgroundPixmapOffset( backgroundPixmapOffset ); + + const QWidget* window( isPreview() ? this->widget() : widget->window() ); + helper().renderBackgroundPixmap(painter, rect, widget, window, offset, height ); + + } + } //_________________________________________________________