Warning, /frameworks/knewstuff/src/qtquick/qml/private/Shadow.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2018 Aleix Pol Gonzalez <aleixpol@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 import QtQuick 2.11
0008 import Qt5Compat.GraphicalEffects 6.0
0009 
0010 import org.kde.kirigami 2.2
0011 
0012 LinearGradient {
0013     id: shadow
0014     property int edge: Qt.LeftEdge
0015 
0016     width: Units.gridUnit/2
0017     height: Units.gridUnit/2
0018 
0019     start: Qt.point((edge !== Qt.RightEdge ? 0 : width), (edge !== Qt.BottomEdge ? 0 : height))
0020     end: Qt.point((edge !== Qt.LeftEdge ? 0 : width), (edge !== Qt.TopEdge ? 0 : height))
0021     gradient: Gradient {
0022         GradientStop {
0023             position: 0.0
0024             color: Theme.backgroundColor
0025         }
0026         GradientStop {
0027             position: 0.3
0028             color: Qt.rgba(0, 0, 0, 0.1)
0029         }
0030         GradientStop {
0031             position: 1.0
0032             color:  "transparent"
0033         }
0034     }
0035 }
0036