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
26 property bool closeButtonShown: true
34 objectName: "closeWindowButton"
38 onClicked: root.close()
39 visible: root.closeButtonShown
42 anchors.centerIn: parent
46 color: UbuntuColors.red
47 visible: parent.containsMouse
51 height: parent.height *.5
52 anchors.centerIn: parent
53 source: "graphics/window-close.svg"
54 color: root.active ? "white" : UbuntuColors.slate
60 id: minimizeWindowButton
61 objectName: "minimizeWindowButton"
65 onClicked: root.minimize()
68 anchors.centerIn: parent
72 color: root.active ? UbuntuColors.graphite : UbuntuColors.ash
73 visible: parent.containsMouse
77 height: parent.height *.5
78 anchors.centerIn: parent
79 source: "graphics/window-minimize.svg"
80 color: root.active ? "white" : UbuntuColors.slate
86 id: maximizeWindowButton
87 objectName: "maximizeWindowButton"
91 onClicked: root.maximize()
94 anchors.centerIn: parent
98 color: root.active ? UbuntuColors.graphite : UbuntuColors.ash
99 visible: parent.containsMouse
103 height: parent.height *.5
104 anchors.centerIn: parent
105 source: "graphics/window-maximize.svg"
106 color: root.active ? "white" : UbuntuColors.slate
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