aboutsummaryrefslogtreecommitdiffstats
path: root/src/labs/stylekit/impl/Shadow.qml
blob: 6014ea722400ab5da76f685026b908396b1ff2e4 (plain)
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
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
// Qt-Security score:significant reason:default

import QtQuick
import QtQuick.Effects
import Qt.labs.StyleKit
import Qt.labs.StyleKit.impl

RectangularShadow {
    required property QtObject control
    required property StyleKitDelegateProperties delegateProperties

    width: parent.width
    height: parent.height
    color: delegateProperties.shadow.color
    opacity: delegateProperties.shadow.opacity
    blur: delegateProperties.shadow.blur
    scale: delegateProperties.shadow.scale
    radius: delegateProperties.radius
    topLeftRadius: delegateProperties.topLeftRadius
    topRightRadius: delegateProperties.topRightRadius
    bottomLeftRadius: delegateProperties.bottomLeftRadius
    bottomRightRadius: delegateProperties.bottomRightRadius
    offset: Qt.vector2d(
                delegateProperties.shadow.horizontalOffset,
                delegateProperties.shadow.verticalOffset)
}