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
25 id: __heroMessageHeader
27 property alias avatar: __avatarImage.source
28 property alias icon: __iconImage.source
29 property alias appIcon: __appIconImage.source
30 property alias titleText: __titleText
31 property alias subtitleText: __subtitleText
32 property alias bodyText: __bodyText
33 property real bodyBottom: __bodyText.y + __bodyText.height
35 signal appIconClicked()
40 id: __avatarImageContainer
41 anchors.top: parent.top
42 anchors.topMargin: units.gu(2)
43 anchors.left: parent.left
44 anchors.leftMargin: units.gu(2)
49 fillMode: Image.PreserveAspectFit
55 anchors.top: parent.top
56 anchors.topMargin: units.gu(2)
57 anchors.left: __avatarImageContainer.right
58 anchors.leftMargin: units.gu(1)
61 horizontalAlignment: Image.AlignHCenter
62 verticalAlignment: Image.AlignBottom
63 fillMode: Image.PreserveAspectFit
68 anchors.baseline: __iconImage.bottom
69 anchors.left: __iconImage.right
70 anchors.leftMargin: units.gu(1)
71 anchors.right: __appIcon.left
72 anchors.rightMargin: units.gu(2)
73 elide: Text.ElideRight
75 font.weight: Font.DemiBold
81 anchors.baseline: __titleText.baseline
82 anchors.baselineOffset: units.gu(2.5)
83 anchors.left: __titleText.left
84 anchors.right: __titleText.right
85 elide: Text.ElideRight
92 anchors.baseline: __subtitleText.baseline
93 anchors.baselineOffset: units.gu(2.5)
94 anchors.left: __titleText.left
95 anchors.right: parent.right
96 anchors.rightMargin: units.gu(2)
98 wrapMode: Text.WordWrap
99 elide: Text.ElideRight
108 anchors.top: parent.top
109 anchors.right: parent.right
111 enabled: __heroMessageHeader.state === "expanded"
116 anchors.left: parent.left
117 anchors.leftMargin: units.gu(2)
118 anchors.right: parent.right
119 anchors.rightMargin: units.gu(2)
120 anchors.topMargin: units.gu(1)
121 anchors.verticalCenter: parent.verticalCenter
122 fillMode: Image.PreserveAspectFit
127 onClicked: __heroMessageHeader.appIconClicked()
140 transitions: Transition {
144 easing.type: Easing.OutQuad
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