Skip to content

Commit

Permalink
Make border between window and decorations thinner
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Artsishevsky <[email protected]>
  • Loading branch information
polter-rnd committed Dec 29, 2022
1 parent 6a3e8ff commit 7243e9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/decoration/qgnomeplatformdecoration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,8 @@ void QGnomePlatformDecoration::paint(QPaintDevice *device)
// ********************************
p.save();
p.setPen(borderColor);
p.drawLine(margins().left(), margins().top() - WINDOW_BORDER_WIDTH, surfaceRect.width() - margins().right(), margins().top() - WINDOW_BORDER_WIDTH);
p.drawLine(QLineF(margins().left(), margins().top() - WINDOW_BORDER_WIDTH / 2.0,
surfaceRect.width() - margins().right(), margins().top() - WINDOW_BORDER_WIDTH / 2.0));
p.restore();

// Window title
Expand Down

0 comments on commit 7243e9c

Please sign in to comment.