From e213b3ca9f2c18ef413862d4806f27d15909d1c8 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Sat, 16 Apr 2011 13:06:59 +0200 Subject: [PATCH] fix gradient positionning for maximized windows --- clients/oxygen/oxygenclient.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index dd9c052484..03aa69369c 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -583,10 +583,16 @@ namespace Oxygen } else { - const int offset = layoutMetric( LM_OuterPaddingTop ); + int offset = layoutMetric( LM_OuterPaddingTop ); + // radial gradient positionning int height = 64 - Configuration::ButtonDefault; if( !hideTitleBar() ) height += configuration().buttonSize(); + if( isMaximized() ) + { + offset -= 3; + height -= 3; + } const QWidget* window( isPreview() ? this->widget() : widget->window() ); helper().renderWindowBackground(painter, rect, widget, window, palette, offset, height );