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
23 readonly property real panelHeight: units.gu(3) + units.dp(2)
24 property real indicatorsMenuWidth: (shell.width > units.gu(60)) ? units.gu(40) : shell.width
25 property alias indicators: indicatorsMenu
26 property bool fullscreenMode: false
27 property bool searchVisible: true
29 readonly property real separatorLineHeight: leftSeparatorLine.height
30 readonly property real __panelMinusSeparatorLineHeight: panelHeight - separatorLineHeight
40 height: __panelMinusSeparatorLineHeight
43 Behavior on y { StandardAnimation {} }
49 top: panelBackground.bottom
51 right: indicatorsMenu.left
53 saturation: 1 - indicatorsMenu.unitProgress
58 property real darkenedOpacity: 0.6
62 top: panelBackground.bottom
66 opacity: indicatorsMenu.unitProgress * darkenedOpacity
69 enabled: indicatorsMenu.shown
70 onClicked: if (indicatorsMenu.fullyOpened) indicatorsMenu.hide();
76 objectName: "indicators"
78 anchors.right: parent.right
80 width: root.indicatorsMenuWidth
82 hintValue: __panelMinusSeparatorLineHeight * 3
83 panelHeight: __panelMinusSeparatorLineHeight
84 openedHeight: parent.height + (pinnedMode ? 0 : root.panelHeight)
85 pinnedMode: !fullscreenMode
86 overFlowWidth: search.state=="hidden" ? parent.width : parent.width - search.width
88 property real unitProgress: (height - panelHeight) / (openedHeight - panelHeight)
92 id: indicatorsSeparatorLine
95 left: indicatorsMenu.left
96 right: indicatorsMenu.right
98 y: indicatorsMenu.visualBottom
105 bottom: indicatorsSeparatorLine.bottom
106 left: indicators.left
107 right: indicators.right
108 margins: -units.gu(1)
110 visible: indicatorsMenu.height > indicatorsMenu.panelHeight
111 source: "graphics/rectangular_dropshadow.sci"
117 enabled: root.searchVisible
120 if (parent.width < indicatorsMenu.width + width) {
121 if (indicatorsMenu.state != "initial") {
125 if (root.searchVisible && !indicatorsMenu.showAll) {
132 height: __panelMinusSeparatorLineHeight
134 top: panelBackground.top
135 left: panelBackground.left
138 onClicked: root.searchClicked()
143 name: "in" //fully opaque and visible at top edge of screen
144 when: !fullscreenMode
145 PropertyChanges { target: panelBackground; y: 0 }
148 name: "out" //pushed off screen
150 PropertyChanges { target: panelBackground; y: -panelHeight }
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