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: if (opacityOverride <= 0) hide()
46 property real _showOpacity: 0
49 if (paused && shown) {
51 } else if (!paused && d.showOnUnpause) {
52 d.showOnUnpause = false;
59 showAnimation: StandardAnimation {
60 property: "_showOpacity"
63 duration: UbuntuAnimation.SleepyDuration
64 onStarted: root.visible = true
67 hideAnimation: StandardAnimation {
68 property: "_showOpacity"
70 duration: UbuntuAnimation.BriskDuration
74 d.showOnUnpause = true;
81 MouseArea { // eat any errant presses
88 // Use x/y/height/width instead of anchors so that we don't adjust
89 // the image if the OSK appears.
94 fillMode: Image.PreserveAspectCrop
100 source: Qt.resolvedUrl("graphics/arrow.svg")
101 fillMode: Image.PreserveAspectFit
108 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