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/PanelState"
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
98 bottom: indicators.bottom
99 right: indicators.left
100 topMargin: indicatorArea.anchors.topMargin + indicators.minimizedPanelHeight
103 source: "graphics/VerticalDivider.png"
110 right: indicators.left
112 height: indicators.minimizedPanelHeight
113 enabled: callHint.visible
114 onClicked: callHint.showLiveCall()
119 objectName: "indicators"
127 width: root.width - (PanelState.buttonsVisible ? windowControlButtons.width : 0)
128 minimizedPanelHeight: units.gu(3)
129 expandedPanelHeight: units.gu(7)
130 openedHeight: root.height - indicatorOrangeLine.height
133 if (callHint.visible) {
134 return Math.max(root.width - (callHint.width + units.gu(2)), 0)
138 enableHint: !callHint.active && !fullscreenMode
139 panelColor: indicatorAreaBackground.color
142 if (callHint.active) {
143 callHint.showLiveCall();
148 anchors.bottomMargin: -indicatorOrangeLine.height
152 WindowControlButtons {
153 id: windowControlButtons
157 margins: units.gu(0.7)
159 height: indicators.minimizedPanelHeight - anchors.margins * 2
160 visible: PanelState.buttonsVisible
161 onClose: PanelState.close()
162 onMinimize: PanelState.minimize()
163 onMaximize: PanelState.maximize()
167 id: indicatorOrangeLine
169 top: indicators.bottom
170 left: indicators.left
171 right: indicators.right
179 left: PanelState.buttonsVisible ? windowControlButtons.right : parent.left
181 height: indicators.minimizedPanelHeight
182 visible: active && indicators.state == "initial"
188 readonly property real indicatorHeight: indicators.minimizedPanelHeight + indicatorOrangeLine.height
193 name: "onscreen" //fully opaque and visible at top edge of screen
194 when: !fullscreenMode
196 target: indicatorArea;
201 name: "offscreen" //pushed off screen
204 target: indicatorArea;
205 anchors.topMargin: indicators.state === "initial" ? -d.indicatorHeight : 0
208 target: indicators.showDragHandle;
209 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