Debian Codegraph @

src/qml/player/VLine.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 Lomiri.Components 1.3
22
23 Row {
24 id: root
25
26 anchors {
27 top: parent.top
28 topMargin: units.gu(0.5)
29 bottom: parent.bottom
30 bottomMargin: units.gu(0.5)
31 }
32 width: visible ? units.dp(2) : 0
33
34 Rectangle {
35 anchors {
36 top: parent.top
37 bottom: parent.bottom
38 }
39
40 color: "white"
41 opacity: 0.08
42 width: root.visible ? units.dp(1) : 0
43 }
44 Rectangle {
45 anchors {
46 top: parent.top
47 bottom: parent.bottom
48 }
49
50 color: "black"
51 opacity: 0.03
52 width: root.visible ? units.dp(1) : 0
53 }
54 }