Commit 508485ea authored by Nate Graham's avatar Nate Graham
Browse files

Move preview image's DropShadow into a layer effect

This is neater code and fixes a bug where the bottom would get cut off
when it was an explicit child item.
parent fc155bf6
......@@ -40,14 +40,11 @@ Kirigami.OverlaySheet {
sourceSize.width: width
fillMode: Image.PreserveAspectFit
smooth: true
DropShadow {
source: previewImage
anchors.fill: previewImage
visible: previewImage.available
layer.enabled: true
layer.effect: DropShadow {
verticalOffset: 2
radius: 10
samples: 32
z: -1
color: Qt.rgba(0, 0, 0, 0.3)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment