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 authored and grulja committed Jan 3, 2023
1 parent ba82069 commit dff87c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/decoration/qgnomeplatformdecoration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
#define SHADOWS_WIDTH 10
#define TITLEBAR_HEIGHT 37
#define WINDOW_BORDER_WIDTH 1
#define TITLEBAR_SEPARATOR_SIZE 0.5

Q_DECL_IMPORT void qt_blurImage(QPainter *p, QImage &blurImage, qreal radius, bool quality, bool alphaOnly, int transposed = 0);

Expand Down Expand Up @@ -449,7 +450,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() - TITLEBAR_SEPARATOR_SIZE,
surfaceRect.width() - margins().right(),
margins().top() - TITLEBAR_SEPARATOR_SIZE));
p.restore();

// Window title
Expand Down

0 comments on commit dff87c2

Please sign in to comment.