apply additional horizontal button offset only in 'Full' maximized mode, and when maximized window are not move/resizable
svn path=/trunk/KDE/kdebase/workspace/; revision=1020594
This commit is contained in:
parent
8b5f974a7b
commit
fafaf8bf9e
1 changed files with 3 additions and 2 deletions
|
@ -165,6 +165,7 @@ namespace Nitrogen
|
|||
if(client_.isActive() && client_.configuration().drawSeparator() && !client_.configuration().drawTitleOutline() )
|
||||
{ helper_.drawSeparator(&painter, QRect(x, titleHeight-1.5, w, 2), color, Qt::Horizontal); }
|
||||
|
||||
// for menu button the application icon is used
|
||||
if (type_ == ButtonMenu)
|
||||
{
|
||||
|
||||
|
@ -181,8 +182,8 @@ namespace Nitrogen
|
|||
else color = KColorScheme(palette.currentColorGroup()).decoration(KColorScheme::HoverColor).color();
|
||||
}
|
||||
|
||||
// translate buttons up if window is not maximized
|
||||
if(client_.maximizeMode() == NitrogenClient::MaximizeRestore)
|
||||
// translate buttons up if window maximized
|
||||
if(client_.isMaximized())
|
||||
{ painter.translate( 0, -1 ); }
|
||||
|
||||
// button shape color
|
||||
|
|
Loading…
Reference in a new issue