Warning, /multimedia/kdenlive/src/timeline2/view/qml/CornerSelectionShadow.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2015 Meltytech LLC
0003     SPDX-FileCopyrightText: 2015 Harald Hvaal <harald.hvaal@gmail.com>
0004 
0005     SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0006 */
0007 
0008 import QtQuick 2.15
0009 
0010 Item {
0011     id: root
0012 
0013     property Item clip
0014     property bool mirrorGradient: false
0015 
0016     width: 100
0017     height: clip ? clip.height : 0
0018     Behavior on opacity { NumberAnimation { duration: 100 } }
0019 
0020     Rectangle {
0021         id: shadowGradient
0022         width: parent.height
0023         height: parent.width
0024         anchors.centerIn: parent
0025         rotation: mirrorGradient ? -90 : 90
0026         gradient: Gradient {
0027             GradientStop { position: 0.0; color: "transparent" }
0028             GradientStop { position: 1.0; color: "white" }
0029         }
0030         PulsingAnimation {
0031             target: shadowGradient
0032             running: root.opacity
0033         }
0034     }
0035 }