on 02f0ecb help sign in
unity8/qml/Tutorial/TutorialLeft.qml
53 lines 1.5 kB history raw
1/*
2 * Copyright (C) 2015 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 */
17import QtQuick 2.4
18import Ubuntu.Components 1.3
19import "." as LocalComponents
21TutorialPage {
22 id: root
24 property var launcher
26 opacityOverride: 1 - launcher.visibleWidth / launcher.panelWidth
28 mouseArea {
29 anchors.leftMargin: launcher.dragAreaWidth
30 }
32 background {
33 sourceSize.height: 1080
34 sourceSize.width: 1916
35 source: Qt.resolvedUrl("graphics/background1.png")
36 mirror: true
37 }
39 arrow {
40 anchors.left: root.left
41 anchors.leftMargin: units.gu(2)
42 anchors.verticalCenter: root.verticalCenter
43 }
45 label {
46 text: i18n.tr("Swipe from the left edge to open the launcher")
47 anchors.left: arrow.right
48 anchors.leftMargin: units.gu(3)
49 anchors.right: root.right
50 anchors.rightMargin: units.gu(4)
51 anchors.verticalCenter: arrow.verticalCenter
52 }