Reduce the titlebar height by 2 pixel for maximized windows to make the buttons
look a bit more centered. FEATURE: 91461 svn path=/trunk/kdebase/kwin/; revision=369845
This commit is contained in:
parent
98c47af908
commit
cf532c077d
1 changed files with 3 additions and 1 deletions
|
@ -992,10 +992,11 @@ void PlastikClient::borders( int& left, int& right, int& top, int& bottom ) cons
|
|||
{
|
||||
if ((maximizeMode()==MaximizeFull) && !options()->moveResizeMaximizedWindows()) {
|
||||
left = right = bottom = 0;
|
||||
top = s_titleHeight + DECOHEIGHT;
|
||||
top = s_titleHeight;
|
||||
|
||||
// update layout etc.
|
||||
topSpacer_->changeSize(1, 0, QSizePolicy::Expanding, QSizePolicy::Fixed);
|
||||
decoSpacer_->changeSize(1, 0, QSizePolicy::Expanding, QSizePolicy::Fixed);
|
||||
leftSpacer_->changeSize(left, 1, QSizePolicy::Fixed, QSizePolicy::Expanding);
|
||||
leftTitleSpacer_->changeSize(left, s_titleHeight, QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
rightSpacer_->changeSize(right, 1, QSizePolicy::Fixed, QSizePolicy::Expanding);
|
||||
|
@ -1007,6 +1008,7 @@ void PlastikClient::borders( int& left, int& right, int& top, int& bottom ) cons
|
|||
|
||||
// update layout etc.
|
||||
topSpacer_->changeSize(1, TOPMARGIN, QSizePolicy::Expanding, QSizePolicy::Fixed);
|
||||
decoSpacer_->changeSize(1, DECOHEIGHT, QSizePolicy::Expanding, QSizePolicy::Fixed);
|
||||
leftSpacer_->changeSize(left, 1, QSizePolicy::Fixed, QSizePolicy::Expanding);
|
||||
leftTitleSpacer_->changeSize(SIDETITLEMARGIN, s_titleHeight,
|
||||
QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
|
|
Loading…
Reference in a new issue