Apply new notification drop shadow to toasts

This commit is contained in:
notiant
2025-12-20 00:05:06 +01:00
committed by GitHub
parent 6b407f0b9b
commit db8a286c5e
3 changed files with 14 additions and 14 deletions
+7 -5
View File
@@ -172,6 +172,8 @@ Item {
const floatMarginH = isFloating ? Math.ceil(Settings.data.bar.marginHorizontal * Style.marginXL) : 0;
return Style.barHeight + floatMarginH;
}
readonly property int shadowPadding: Style.shadowBlurMax + Style.marginL
// Anchoring
anchors.top: isTop
@@ -180,10 +182,10 @@ Item {
anchors.right: isRight
// Margins for PanelWindow - only apply bar offset for the specific edge where the bar is
margins.top: isTop ? barOffsetTop : 0
margins.bottom: isBottom ? barOffsetBottom : 0
margins.left: isLeft ? barOffsetLeft : 0
margins.right: isRight ? barOffsetRight : 0
margins.top: isTop ? barOffsetTop - shadowPadding + Style.marginM : 0
margins.bottom: isBottom ? barOffsetBottom - shadowPadding + Style.marginM : 0
margins.left: isLeft ? barOffsetLeft - shadowPadding + Style.marginM : 0
margins.right: isRight ? barOffsetRight - shadowPadding + Style.marginM : 0
implicitWidth: Math.round(toastItem.width)
implicitHeight: Math.round(toastItem.height)
@@ -210,4 +212,4 @@ Item {
}
}
}
}
}