on bionic help sign in
unity8/qml/Tutorial/TutorialLeft.qml
54 lines 1.5 kB history raw
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 */
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: 1916
34 sourceSize.width: 1080
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 rotation: 180
44 }
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 }