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
19import "../Components/TouchControlsState"
23 spacing: TouchControlsState.overlayShown ? units.gu(2) : units.gu(1)
25 UbuntuNumberAnimation {}
28 // to be set from outside
29 property bool active: false
30 property bool windowIsMaximized: false
31 property bool closeButtonShown: true
39 objectName: "closeWindowButton"
43 onClicked: root.close()
44 visible: root.closeButtonShown
49 color: UbuntuColors.red
50 visible: parent.containsMouse && !TouchControlsState.overlayShown
54 anchors.margins: units.dp(3)
55 source: "graphics/window-close.svg"
56 color: root.active ? "white" : UbuntuColors.slate
61 id: minimizeWindowButton
62 objectName: "minimizeWindowButton"
66 onClicked: root.minimize()
71 color: root.active ? UbuntuColors.graphite : UbuntuColors.ash
72 visible: parent.containsMouse && !TouchControlsState.overlayShown
76 anchors.margins: units.dp(3)
77 source: "graphics/window-minimize.svg"
78 color: root.active ? "white" : UbuntuColors.slate
83 id: maximizeWindowButton
84 objectName: "maximizeWindowButton"
88 onClicked: root.maximize()
93 color: root.active ? UbuntuColors.graphite : UbuntuColors.ash
94 visible: parent.containsMouse && !TouchControlsState.overlayShown
98 anchors.margins: units.dp(3)
99 source: root.windowIsMaximized ? "graphics/window-window.svg" : "graphics/window-maximize.svg"
100 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