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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user