2 * Copyright 2014 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 QtQuick.Layouts 1.1
19import Ubuntu.Components 1.1
20import Ubuntu.Settings.Components 0.1
28 columns: 2 + repeater.count % 2
29 property alias model: repeater.model
35 spacing: units.gu(0.5)
36 readonly property int column: index % grid.columns;
38 if (column == 0) return Qt.AlignLeft;
39 if (column == grid.columns - 1 || index == repeater.count - 1) return Qt.AlignRight;
40 if (column == 1) return Qt.AlignHCenter;
42 Layout.columnSpan: index == repeater.count - 1 && grid.columns == 3 && column == 1 ? 2 : 1
43 Layout.maximumWidth: Math.max(icon.width, label.x + label.implicitWidth)
44 Layout.fillWidth: true
48 sets: ["actions", "status", "apps"]
49 source: "icon" in modelData ? modelData["icon"] : ""
53 width: parent.width - x
54 anchors.verticalCenter: parent.verticalCenter
55 text: "value" in modelData ? modelData["value"] : "";
56 elide: Text.ElideRight
58 font.weight: "style" in modelData && modelData["style"] == "highlighted" ? Font.DemiBold : Font.Light
60 font.pixelSize: Math.round(FontUtils.sizeToPixels(fontSize) * fontScale)
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