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.
pull/21/head
Michail Vourlakos 4 years ago
parent 939c0573f9
commit ab57516dab

@ -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) {

Loading…
Cancel
Save