Unity 8
TutorialLeft.qml
1 /*
2  * Copyright (C) 2015-2016 Canonical, Ltd.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; version 3.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 import QtQuick 2.4
18 import Ubuntu.Components 1.3
19 import "." as LocalComponents
20 
21 TutorialPage {
22  id: root
23 
24  property var launcher
25 
26  opacityOverride: 1 - launcher.visibleWidth / launcher.panelWidth
27 
28  mouseArea {
29  anchors.leftMargin: root.launcher.dragAreaWidth
30  }
31 
32  background {
33  sourceSize.height: 1916
34  sourceSize.width: 1080
35  source: Qt.resolvedUrl("graphics/background1.png")
36  mirror: true
37  }
38 
39  arrow {
40  anchors.left: root.left
41  anchors.leftMargin: units.gu(2)
42  anchors.verticalCenter: root.verticalCenter
43  rotation: 180
44  }
45 
46  label {
47  text: i18n.tr("Short swipe from the left edge to open the launcher")
48  anchors.left: arrow.right
49  anchors.leftMargin: units.gu(3)
50  anchors.right: root.right
51  anchors.rightMargin: units.gu(4)
52  anchors.verticalCenter: arrow.verticalCenter
53  }
54 }