2 * Copyright 2013 Canonical Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser 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 Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 * Renato Araujo Oliveira Filho <renato@canonical.com>
18 * Olivier Tilloy <olivier.tilloy@canonical.com>
22import Ubuntu.Components 0.1
23import Unity.Indicators 0.1 as Indicators
24import "utils.js" as Utils
29 property string title: ""
30 property string time: ""
31 property string message: ""
33 property bool activateEnabled: true
34 property alias actionButtonText: actionButton.text
36 property bool replyEnabled: true
37 property alias replyMessages: quickreply.messages
38 property alias replyButtonText: quickreply.buttonText
40 expandedHeight: buttons.y + buttons.height + quickreply.height + units.gu(2)
41 heroMessageHeader.titleText.text: title
42 heroMessageHeader.subtitleText.text: message
43 heroMessageHeader.subtitleText.color: "#e8e1d0"
44 heroMessageHeader.bodyText.text: time
45 heroMessageHeader.bodyText.color: "#8f8f88"
48 signal reply(string value)
53 anchors.left: parent.left
54 anchors.leftMargin: units.gu(2)
55 anchors.right: parent.right
56 anchors.rightMargin: units.gu(2)
57 anchors.top: heroMessageHeader.bottom
58 anchors.topMargin: units.gu(1)
65 anchors.left: parent.left
66 anchors.top: parent.top
67 anchors.bottom: parent.bottom
68 width: (parent.width - units.gu(1)) / 2
71 if (quickreply.state === "") {
72 quickreply.state = "expanded";
74 quickreply.state = "";
82 color: enabled ? "#c94212" : "#bababa"
83 anchors.right: parent.right
84 anchors.top: parent.top
85 anchors.bottom: parent.bottom
86 width: (parent.width - units.gu(1)) / 2
87 enabled: snapDecision.activateEnabled
90 snapDecision.activate();
96 when: snapDecision.state === "expanded"
103 transitions: Transition {
107 easing.type: Easing.OutQuad
116 snapDecision.reply(value);
123 topMargin: units.gu(2)
130 replyEnabled: snapDecision.replyEnabled
137 height: expandedHeight
147 transitions: Transition {
149 properties: "opacity,height"
151 easing.type: Easing.OutQuad
158 quickreply.state = "";
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