From ab57516dab8595fe86c69912d32b3f4ceb041f8d Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Thu, 5 Nov 2020 21:40:16 +0200 Subject: [PATCH] drop ShadowedRectangle workaround --new kde frameworks have solved the main issue of very big shadows for very narrow background thickness. On the contrary a secondary issue occurs that in the previous case the shadows are masked outcut for ShadowedRectangle implementation. --- .../package/contents/ui/background/MultiLayered.qml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/containment/package/contents/ui/background/MultiLayered.qml b/containment/package/contents/ui/background/MultiLayered.qml index bcca6f70a..93537bbbc 100644 --- a/containment/package/contents/ui/background/MultiLayered.qml +++ b/containment/package/contents/ui/background/MultiLayered.qml @@ -506,17 +506,7 @@ BackgroundProperties{ backgroundColor: colorizerManager.backgroundColor shadowColor: customShadowColor - shadowSize: { - if (!customShadowIsEnabled) { - return 0; - } - - //! WORKAROUND: Kirigami.ShadowedRectangle does not respect the specified shadowed size - //! when the shadow size is bigger than background thickness. In such case the ShadowedRectangle - //! produced shadowed is much bigger than the specified one - var minaxis = Math.min(solidBackground.height, solidBackground.width) - return customShadow > minaxis ? minaxis : customShadow; - } + shadowSize: customShadowIsEnabled ? customShadow : 0 roundness: { if (customRadiusIsEnabled) {