2 * Copyright (C) 2013 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 0.1
24 property alias iconSource: avatarIcon.source
25 property alias secondaryIconSource: secondaryIcon.source
26 property alias summary: summaryLabel.text
27 property alias body: bodyLabel.text
30 signal actionInvoked(string buttonId)
32 implicitHeight: childrenRect.height
33 color: Qt.rgba(0, 0, 0, 0.85)
39 anchors.fill: contentColumn
40 objectName: "interactiveArea"
41 enabled: notification.type == "Notifications.Type.Interactive"
42 onClicked: notification.actionInvoked(actions.get(0).id)
54 height: childrenRect.height + spacing
60 spacing: contentColumn.spacing
72 visible: iconSource !== undefined && iconSource != ""
76 fillMode: Image.PreserveAspectCrop
83 objectName: "secondaryIcon"
86 visible: source !== undefined && source != ""
87 fillMode: Image.PreserveAspectCrop
92 width: parent.width - x
97 objectName: "summaryLabel"
105 elide: Text.ElideRight
111 objectName: "bodyLabel"
120 wrapMode: Text.WordWrap
122 elide: Text.ElideRight
130 objectName: "buttonRow"
131 spacing: contentColumn.spacing
132 layoutDirection: Qt.RightToLeft
133 visible: notification.type == "Notifications.Type.SnapDecision"
140 model: notification.actions
143 objectName: "button" + index
144 color: Positioner.isFirstItem ? "#d85317" : "#cdcdcb"
145 width: (buttonRow.width - buttonRow.spacing) / 2
148 onClicked: notification.actionInvoked(id)
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