Debian Codegraph @

src/qml/player/ControlsMask.qml

raw
1 /*
2 * Copyright (C) 2013 Canonical, Ltd.
3 *
4 * Authors:
5 * Renato Araujo Oliveira Filho <[email protected]>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 3.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 import QtQuick 2.4
21 import QtGraphicalEffects 1.0
22
23
24 Item {
25 id: _controlsMask
26
27 property variant controls
28 property variant videoOutput
29
30 LinearGradient {
31 id: _mask
32
33 anchors.fill: parent
34 start: Qt.point(0, controls.y)
35 end: Qt.point(0, controls.y + controls.height)
36 visible: false
37
38 gradient: Gradient {
39 GradientStop { position: 0.0; color: "#00ffffff" }
40 GradientStop { position: 0.1; color: "#000000" }
41 }
42 }
43
44 MaskedBlur {
45 anchors.fill: parent
46 source: videoOutput
47 maskSource: _mask
48 radius: 99
49 samples: 39
50 fast: true
51 }
52 }