popouts: use reals for rounding

So it looks better
This commit is contained in:
2 * r + 2 * t 2025-05-06 23:49:28 +10:00
parent 9567992294
commit 3e8b7240ad
2 changed files with 4 additions and 4 deletions

View file

@ -8,8 +8,8 @@ Shape {
required property real wrapperWidth
required property real realWrapperHeight
readonly property int rounding: BorderConfig.rounding
readonly property int roundingY: Math.min(rounding, realWrapperHeight / 2)
readonly property real rounding: BorderConfig.rounding
readonly property real roundingY: Math.min(rounding, realWrapperHeight / 2)
readonly property real wrapperHeight: realWrapperHeight - 1 // Pixel issues :sob:
preferredRendererType: Shape.CurveRenderer

View file

@ -8,8 +8,8 @@ Shape {
required property real realWrapperWidth
required property real wrapperHeight
readonly property int rounding: BorderConfig.rounding
readonly property int roundingX: Math.min(rounding, realWrapperWidth / 2)
readonly property real rounding: BorderConfig.rounding
readonly property real roundingX: Math.min(rounding, realWrapperWidth / 2)
readonly property real wrapperWidth: realWrapperWidth - 1 // Pixel issues :sob:
preferredRendererType: Shape.CurveRenderer