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
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
43 topMargin: units.gu(2)
45 leftMargin: units.gu(2)
51 fillMode: Image.PreserveAspectFit
59 topMargin: units.gu(2)
60 left: avatarImageContainer.right
61 leftMargin: units.gu(1)
65 horizontalAlignment: Image.AlignHCenter
66 verticalAlignment: Image.AlignBottom
67 fillMode: Image.PreserveAspectFit
73 baseline: iconImage.bottom
75 leftMargin: units.gu(1)
77 rightMargin: units.gu(2)
79 elide: Text.ElideRight
81 font.weight: Font.DemiBold
88 baseline: __titleText.baseline
89 baselineOffset: units.gu(2.5)
90 left: __titleText.left
91 right: __titleText.right
93 elide: Text.ElideRight
101 baseline: __subtitleText.baseline
102 baselineOffset: units.gu(2.5)
103 left: __titleText.left
105 rightMargin: units.gu(2)
108 wrapMode: Text.WordWrap
109 elide: Text.ElideRight
123 enabled: heroMessageHeader.state === "expanded"
130 leftMargin: units.gu(2)
132 rightMargin: units.gu(2)
133 topMargin: units.gu(1)
134 verticalCenter: parent.verticalCenter
136 fillMode: Image.PreserveAspectFit
141 onClicked: heroMessageHeader.appIconClicked()
154 transitions: Transition {
158 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