Warning, /plasma/discover/discover/qml/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.1 0008 import QtGraphicalEffects 1.0 0009 import org.kde.kirigami 2.2 0010 0011 LinearGradient { 0012 id: shadow 0013 property int edge: Qt.LeftEdge 0014 0015 width: Units.gridUnit/2 0016 height: Units.gridUnit/2 0017 0018 start: Qt.point((edge !== Qt.RightEdge ? 0 : width), (edge !== Qt.BottomEdge ? 0 : height)) 0019 end: Qt.point((edge !== Qt.LeftEdge ? 0 : width), (edge !== Qt.TopEdge ? 0 : height)) 0020 gradient: Gradient { 0021 GradientStop { 0022 position: 0.0 0023 color: Theme.backgroundColor 0024 } 0025 GradientStop { 0026 position: 0.3 0027 color: Qt.rgba(0, 0, 0, 0.1) 0028 } 0029 GradientStop { 0030 position: 1.0 0031 color: "transparent" 0032 } 0033 } 0034 } 0035