2 * Copyright (C) 2013,2014 Canonical, Ltd.
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.
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.
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/>.
18import Ubuntu.Components 1.3
24 property alias arrow: arrow
25 property alias label: label
26 property alias background: background
27 property alias mouseArea: mouseArea
28 property real opacityOverride: 1
38 property bool showOnUnpause
44 opacity: Math.max(Math.min(_showOpacity, opacityOverride), 0)
45 onOpacityOverrideChanged: {
46 if (opacityOverride <= 0) {
47 d.showOnUnpause = false;
51 property real _showOpacity: 0
54 if (paused && shown) {
55 d.showOnUnpause = true;
57 } else if (!paused && d.showOnUnpause) {
60 } else if (hideAnimation.running) {
63 d.showOnUnpause = false;
67 showAnimation: StandardAnimation {
68 property: "_showOpacity"
71 duration: UbuntuAnimation.SleepyDuration
72 onStarted: root.visible = true
75 hideAnimation: StandardAnimation {
76 property: "_showOpacity"
78 duration: UbuntuAnimation.BriskDuration
81 if (!d.showOnUnpause) {
87 MouseArea { // eat any errant presses
94 // Use x/y/height/width instead of anchors so that we don't adjust
95 // the image if the OSK appears.
100 fillMode: Image.PreserveAspectCrop
106 source: Qt.resolvedUrl("graphics/arrow.svg")
107 fillMode: Image.PreserveAspectFit
113 objectName: "tutorialLabel"
115 font.weight: Font.Light
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list