aboutsummaryrefslogtreecommitdiffstats
path: root/config/quickshell/overview-backup/common/widgets/RectangularShadow.qml
blob: 2289d4c0a4acb066121b120d4b7a5c7a76fd7306 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import QtQuick
import QtQuick.Effects

Item {
    id: root

    property var target: parent
    property real radius: 0
    property real blur: 0
    property vector2d offset: Qt.vector2d(0.0, 0.0)
    property real spread: 0
    property color color: "black"
    property bool cached: false

    anchors.fill: target
    visible: target !== null

    MultiEffect {
        anchors.fill: target
        source: target
        shadowEnabled: true
        shadowColor: root.color
        shadowBlur: root.blur
        shadowHorizontalOffset: root.offset.x
        shadowVerticalOffset: root.offset.y
        shadowOpacity: 1.0
    }
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage