KNewStuff

Shadow.qml
1 /*
2  SPDX-FileCopyrightText: 2018 Aleix Pol Gonzalez <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 import QtQuick 2.11
8 import QtGraphicalEffects 1.11
9 
10 import org.kde.kirigami 2.2
11 
12 LinearGradient {
13  id: shadow
14  property int edge: Qt.LeftEdge
15 
16  width: Units.gridUnit/2
17  height: Units.gridUnit/2
18 
19  start: Qt.point((edge !== Qt.RightEdge ? 0 : width), (edge !== Qt.BottomEdge ? 0 : height))
20  end: Qt.point((edge !== Qt.LeftEdge ? 0 : width), (edge !== Qt.TopEdge ? 0 : height))
21  gradient: Gradient {
22  GradientStop {
23  position: 0.0
24  color: Theme.backgroundColor
25  }
26  GradientStop {
27  position: 0.3
28  color: Qt.rgba(0, 0, 0, 0.1)
29  }
30  GradientStop {
31  position: 1.0
32  color: "transparent"
33  }
34  }
35 }
36 
const QList< QKeySequence > & end()
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 18 2021 22:43:50 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.