2 * Copyright (C) 2014-2016 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 windowIsMaximized: false
34 objectName: "closeWindowButton"
38 onClicked: root.close()
43 color: UbuntuColors.red
44 visible: parent.containsMouse
48 anchors.margins: units.dp(3)
49 source: "graphics/window-close.svg"
50 color: root.active ? "white" : UbuntuColors.slate
55 id: minimizeWindowButton
56 objectName: "minimizeWindowButton"
60 onClicked: root.minimize()
65 color: root.active ? UbuntuColors.graphite : UbuntuColors.ash
66 visible: parent.containsMouse
70 anchors.margins: units.dp(3)
71 source: "graphics/window-minimize.svg"
72 color: root.active ? "white" : UbuntuColors.slate
77 id: maximizeWindowButton
78 objectName: "maximizeWindowButton"
82 onClicked: root.maximize()
87 color: root.active ? UbuntuColors.graphite : UbuntuColors.ash
88 visible: parent.containsMouse
92 anchors.margins: units.dp(3)
93 source: root.windowIsMaximized ? "graphics/window-window.svg" : "graphics/window-maximize.svg"
94 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