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.1
19import Unity.Application 0.1
21import "../Components/ListItems"
26 readonly property real panelHeight: indicatorArea.y + d.indicatorHeight
27 property alias indicators: __indicators
28 property alias callHint: __callHint
29 property bool fullscreenMode: false
33 property real darkenedOpacity: 0.6
36 topMargin: panelHeight
42 opacity: indicators.unitProgress * darkenedOpacity
46 enabled: indicators.shown
47 onClicked: if (indicators.fullyOpened) indicators.hide();
53 objectName: "indicatorArea"
57 Behavior on anchors.topMargin {
58 NumberAnimation { duration: UbuntuAnimation.FastDuration; easing: UbuntuAnimation.StandardEasing }
65 leftMargin: -units.gu(1)
66 bottomMargin: -units.gu(1)
68 visible: !indicators.fullyClosed
69 source: "graphics/rectangular_dropshadow.sci"
73 id: indicatorAreaBackground
74 color: callHint.visible ? "green" : "black"
80 height: indicators.minimizedPanelHeight
82 Behavior on color { ColorAnimation { duration: UbuntuAnimation.FastDuration } }
88 top: indicatorAreaBackground.bottom
90 right: indicators.left
92 saturation: 1 - indicators.unitProgress
99 bottom: indicators.bottom
100 right: indicators.left
102 topMargin: indicatorArea.anchors.topMargin + indicators.minimizedPanelHeight
106 source: "graphics/VerticalDivider.png"
113 right: indicators.left
115 height: indicators.minimizedPanelHeight
116 enabled: callHint.visible
117 onClicked: callHint.showLiveCall()
122 objectName: "indicators"
131 minimizedPanelHeight: units.gu(3)
132 expandedPanelHeight: units.gu(7)
133 openedHeight: root.height - indicatorOrangeLine.height
136 if (callHint.visible) {
137 return Math.max(root.width - (callHint.width + units.gu(2)), 0)
141 enableHint: !callHint.active && !fullscreenMode
142 panelColor: indicatorAreaBackground.color
145 if (callHint.active) {
146 callHint.showLiveCall();
151 anchors.bottomMargin: -indicatorOrangeLine.height
156 id: indicatorOrangeLine
158 top: indicators.bottom
159 left: indicators.left
160 right: indicators.right
170 height: indicators.minimizedPanelHeight
171 visible: active && indicators.state == "initial"
177 readonly property real indicatorHeight: indicators.minimizedPanelHeight + indicatorOrangeLine.height
182 name: "onscreen" //fully opaque and visible at top edge of screen
183 when: !fullscreenMode
185 target: indicatorArea;
190 name: "offscreen" //pushed off screen
193 target: indicatorArea;
194 anchors.topMargin: indicators.state === "initial" ? -d.indicatorHeight : 0
197 target: indicators.showDragHandle;
198 anchors.bottomMargin: -units.gu(1)
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