From b40a7bd4b34f063172f5b9eb18aaaa1a95495c26 Mon Sep 17 00:00:00 2001 From: Johan Klokkhammer Helsing Date: Sun, 17 Jun 2018 00:42:37 +0200 Subject: [PATCH] Client: Use a pixel font size for window decorations The window title bar's height is given in device pixels, so the font size should be as well. Task-number: QTBUG-68834 Change-Id: I5a82deb39439088dd55152fb8bae5c2d19d8b33e Reviewed-by: Paul Olav Tvete Reviewed-by: Pier Luigi Fiorini --- .../platforms/wayland/plugins/decorations/bradient/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/platforms/wayland/plugins/decorations/bradient/main.cpp b/src/plugins/platforms/wayland/plugins/decorations/bradient/main.cpp index 4d3099d7780..02332a6464f 100644 --- a/src/plugins/platforms/wayland/plugins/decorations/bradient/main.cpp +++ b/src/plugins/platforms/wayland/plugins/decorations/bradient/main.cpp @@ -255,6 +255,7 @@ void QWaylandBradientDecoration::paint(QPaintDevice *device) int dy = (top.height()- size.height()) /2; QFont font = p.font(); font.setBold(true); + font.setPixelSize(12); p.setFont(font); QPoint windowTitlePoint(top.topLeft().x() + dx, top.topLeft().y() + dy);