From 9d7aabf9987cdb8ca0c79d27f347cb7a0b08cd12 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Mon, 11 May 2020 20:32:43 +0300 Subject: [PATCH] fix Outline for Justified Floating Views --- .../package/contents/ui/colorizer/CustomBackground.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/containment/package/contents/ui/colorizer/CustomBackground.qml b/containment/package/contents/ui/colorizer/CustomBackground.qml index 4c390b6e8..f4f3f7965 100644 --- a/containment/package/contents/ui/colorizer/CustomBackground.qml +++ b/containment/package/contents/ui/colorizer/CustomBackground.qml @@ -121,7 +121,7 @@ Item{ } else if (plasmoid.formFactor === PlasmaCore.Types.Vertical) { if (drawWithoutRoundness) { return parent.width + 2 * borderWidth; - } else if (noOfBorders === 2 || (noOfBorders === 3 && bothHorizontals)) { + } else if ((noOfBorders === 2 && !bothVerticals) || (noOfBorders === 3 && bothHorizontals)) { return parent.width + Math.max(roundness, 2 * borderWidth); } } @@ -134,7 +134,7 @@ Item{ if (plasmoid.formFactor === PlasmaCore.Types.Horizontal) { if (drawWithoutRoundness) { return parent.height + 2 * borderWidth; - } else if (noOfBorders === 2 || (noOfBorders === 3 && bothVerticals)) { + } else if ((noOfBorders === 2 && !bothHorizontals) || (noOfBorders === 3 && bothVerticals)) { return parent.height + Math.max(roundness,2 * borderWidth); } } else if (plasmoid.formFactor === PlasmaCore.Types.Vertical) { @@ -184,7 +184,7 @@ Item{ return 0; } anchors.verticalCenterOffset: { - if (allBorders || (noOfBorders === 3 && bothHorizontals)) { + if (allBorders || (noOfBorders>=2 && bothHorizontals)) { return 0; } @@ -213,7 +213,7 @@ Item{ return 0; } anchors.horizontalCenterOffset: { - if (allBorders || (noOfBorders === 3 && bothVerticals)) { + if (allBorders || (noOfBorders>=2 && bothVerticals)) { return 0; }