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 6ecb7b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/decoration/qgnomeplatformdecoration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,10 @@ 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 6ecb7b6

Please sign in to comment.