mirror of
https://github.com/hyprwm/hyprpolkitagent.git
synced 2024-11-21 18:05:59 +01:00
qml: use font metrics for popup size
This commit is contained in:
parent
12f06d8037
commit
14598c27ac
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue