diff --git a/containments/desktop/package/contents/ui/FolderItemDelegate.qml b/containments/desktop/package/contents/ui/FolderItemDelegate.qml --- a/containments/desktop/package/contents/ui/FolderItemDelegate.qml +++ b/containments/desktop/package/contents/ui/FolderItemDelegate.qml @@ -213,6 +213,7 @@ y: root.useListViewMode ? 0 : units.smallSpacing property Item textShadow: null + property Item iconShadow: null property string prefix: "" sourceComponent: frameComponent @@ -405,6 +406,30 @@ } } + Component { + id: iconShadowComponent + + DropShadow { + anchors.fill: icon + + z: 1 + + verticalOffset: 1 + + radius: 5 + samples: 10 + spread: 0.05 + + color: "black" + + opacity: model.isHidden ? 0.3 : 0.6 + + source: icon + + visible: !editor || editor.targetItem != main + } + } + Component { id: textShadowComponent @@ -494,6 +519,7 @@ Component.onCompleted: { if (root.isContainment && main.GridView.view.isRootView && root.GraphicsInfo.api === GraphicsInfo.OpenGL) { frameLoader.textShadow = textShadowComponent.createObject(frameLoader); + frameLoader.iconShadow = iconShadowComponent.createObject(frameLoader); } } }