From 14598c27ac709fcfbfd7e89d8aac9f30e7e3e25d Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 16 Oct 2024 15:53:52 +0100 Subject: [PATCH] qml: use font metrics for popup size --- qml/main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qml/main.qml b/qml/main.qml index fb6cd6a..73d6df6 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -5,8 +5,8 @@ import QtQuick.Layouts ApplicationWindow { id: window - property var windowWidth: 550 - property var windowHeight: 240 + property var windowWidth: Math.round(fontMetrics.height * 39.2856) + property var windowHeight: Math.round(fontMetrics.height * 17.1428) maximumWidth: windowWidth maximumHeight: windowHeight