2 * Copyright (C) 2013 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 0.1
19import Unity.Application 0.1
21import "../Components/ListItems"
25 readonly property real panelHeight: indicatorArea.y + d.indicatorHeight
26 property alias indicators: __indicators
27 property alias callHint: __callHint
28 property bool fullscreenMode: false
30 function hideIndicatorMenu(delay) {
31 if (delay !== undefined) {
32 hideTimer.interval = delay;
49 onShownChanged: hideTimer.stop()
54 property real darkenedOpacity: 0.6
57 topMargin: panelHeight
63 opacity: indicators.unitProgress * darkenedOpacity
67 enabled: indicators.shown
68 onClicked: if (indicators.fullyOpened) indicators.hide();
74 objectName: "indicatorArea"
78 Behavior on anchors.topMargin { StandardAnimation {} }
84 leftMargin: -units.gu(1)
85 bottomMargin: -units.gu(1)
87 visible: indicators.height > indicators.panelHeight
88 source: "graphics/rectangular_dropshadow.sci"
95 bottom: indicators.bottom
96 right: indicators.left
98 topMargin: indicatorArea.anchors.topMargin + indicators.panelHeight
102 source: "graphics/VerticalDivider.png"
106 id: indicatorAreaBackground
107 color: callHint.visible ? "green" : "black"
113 height: indicators.panelHeight
115 Behavior on color { ColorAnimation { duration: UbuntuAnimation.FastDuration } }
119 id: nonIndicatorAreaSeparatorLine
121 top: indicatorAreaBackground.bottom
123 right: indicators.left
125 saturation: 1 - indicators.unitProgress
132 right: indicators.left
134 height: indicators.panelHeight
135 enabled: callHint.visible
136 onClicked: callHint.showLiveCall()
141 objectName: "indicators"
150 panelHeight: units.gu(3)
151 openedHeight: root.height
153 if (callHint.visible) {
154 return Math.max(root.width - (callHint.width + units.gu(2)), 0)
159 enableHint: !callHint.active && !fullscreenMode
160 showHintBottomMargin: fullscreenMode ? -panelHeight : 0
163 if (callHint.active) {
164 callHint.showLiveCall();
175 height: indicators.panelHeight
176 visible: active && indicators.state == "initial"
180 id: indicatorsSeparatorLine
183 top: indicators.bottom
184 left: indicatorDividor.left
185 right: indicators.right
192 readonly property real indicatorHeight: indicators.panelHeight + indicatorsSeparatorLine.height
197 name: "onscreen" //fully opaque and visible at top edge of screen
198 when: !fullscreenMode
200 target: indicatorArea;
205 name: "offscreen" //pushed off screen
208 target: indicatorArea;
209 anchors.topMargin: indicators.state === "initial" ? -d.indicatorHeight : 0
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