1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 15:32:50 -05:00

popout: add a shadow

This commit is contained in:
bbedward
2025-11-10 14:21:53 -05:00
parent 8fea126c20
commit 75eb736856
2 changed files with 27 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
import QtQuick
import QtQuick.Effects
import Quickshell
import Quickshell.Hyprland
import Quickshell.Wayland
@@ -168,6 +169,23 @@ PanelWindow {
}
}
RectangularShadow {
id: shadowEffect
width: contentLoader.width
height: contentLoader.height
x: contentLoader.x
y: contentLoader.y
scale: contentLoader.scale
transformOrigin: Item.Center
radius: Theme.cornerRadius
blur: 8
spread: 0
color: Qt.rgba(0, 0, 0, 0.4)
visible: contentLoader.visible && shouldBeVisible
opacity: contentLoader.opacity * 0.6
}
Loader {
id: contentLoader
anchors.centerIn: parent