2 * Copyright (C) 2014-2015 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 // to be set from outside
25 property bool active: false
30 signal maximizeVertically()
31 signal maximizeHorizontally()
35 objectName: "closeWindowButton"
39 onClicked: root.close()
42 anchors.centerIn: parent
47 visible: parent.containsMouse
51 height: parent.height *.5
52 anchors.centerIn: parent
53 source: "graphics/window-close.svg"
54 color: root.active ? "white" : "#5d5d5d"
60 id: minimizeWindowButton
61 objectName: "minimizeWindowButton"
65 onClicked: root.minimize()
68 anchors.centerIn: parent
73 visible: parent.containsMouse
77 height: parent.height *.5
78 anchors.centerIn: parent
79 source: "graphics/window-minimize.svg"
80 color: root.active ? "white" : "#5d5d5d"
86 id: maximizeWindowButton
87 objectName: "maximizeWindowButton"
91 acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
93 if (mouse.button == Qt.LeftButton) {
95 } else if (mouse.button == Qt.RightButton) {
96 root.maximizeHorizontally();
97 } else if (mouse.button == Qt.MiddleButton) {
98 root.maximizeVertically();
103 anchors.centerIn: parent
108 visible: parent.containsMouse
112 height: parent.height *.5
113 anchors.centerIn: parent
114 source: "graphics/window-maximize.svg"
115 color: root.active ? "white" : "#5d5d5d"
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