Don't hard-code the distance between pop-up and header

By default in all of our themes this ends up being the same distance at 100% pixel scale, but it now scales according to the pixel scale of the user's screen while still being properly rounded to integer coordinates.
This commit is contained in:
Ghostkeeper 2021-09-10 12:12:20 +02:00
parent b2eae08cc7
commit 25e2828ed0
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -76,7 +76,8 @@ Item
// On what side should the header corners be shown? 1 is down, 2 is left, 3 is up and 4 is right.
property alias headerCornerSide: background.cornerSide
property int popupOffset: 2
// Distance between the header and the content if the content is a pop-up.
property int popupOffset: 2 * UM.Theme.getSize("default_lining").height
// Prefix used for the dragged position preferences. Preferences not used if empty. Don't translate!
property string dragPreferencesNamePrefix: ""