fix gradient positionning for maximized windows
This commit is contained in:
parent
38f5c5d055
commit
e213b3ca9f
1 changed files with 7 additions and 1 deletions
|
@ -583,10 +583,16 @@ namespace Oxygen
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
const int offset = layoutMetric( LM_OuterPaddingTop );
|
int offset = layoutMetric( LM_OuterPaddingTop );
|
||||||
|
|
||||||
|
// radial gradient positionning
|
||||||
int height = 64 - Configuration::ButtonDefault;
|
int height = 64 - Configuration::ButtonDefault;
|
||||||
if( !hideTitleBar() ) height += configuration().buttonSize();
|
if( !hideTitleBar() ) height += configuration().buttonSize();
|
||||||
|
if( isMaximized() )
|
||||||
|
{
|
||||||
|
offset -= 3;
|
||||||
|
height -= 3;
|
||||||
|
}
|
||||||
|
|
||||||
const QWidget* window( isPreview() ? this->widget() : widget->window() );
|
const QWidget* window( isPreview() ? this->widget() : widget->window() );
|
||||||
helper().renderWindowBackground(painter, rect, widget, window, palette, offset, height );
|
helper().renderWindowBackground(painter, rect, widget, window, palette, offset, height );
|
||||||
|
|
Loading…
Reference in a new issue