2import Ubuntu.Components 0.1
6 property alias mascot: avatarImage.source
7 property alias title: titleLabel.text
8 property alias subtitle: subtitleLabel.text
9 property alias price: priceLabel.text
10 property alias oldPrice: oldPriceLabel.text
11 property alias altPrice: altPriceLabel.text
13 visible: avatarImage.status === Image.Ready || title || price
14 height: row.height > 0 ? row.height + row.spacing * 2 : 0
19 anchors { top: parent.top; left: parent.left; right: parent.right; margins: spacing }
24 objectName: "avatarShape"
28 visible: image.status === Image.Ready
32 sourceSize { width: avatarShape.width; height: avatarShape.height }
37 width: parent.width - x - row.spacing
41 anchors { left: parent.left; right: parent.right }
42 elide: Text.ElideRight
43 objectName: "titleLabel"
44 font.weight: Font.DemiBold
51 anchors { left: parent.left; right: parent.right }
52 elide: Text.ElideRight
53 visible: titleLabel.text && text
59 anchors { left: parent.left; right: parent.right }
61 property int labels: {
62 var labels = 1; // price always visible
63 if (oldPriceLabel.text !== "") labels += 1;
64 if (altPriceLabel.text !== "") labels += 1;
67 property real labelWidth: width / labels
71 width: parent.labelWidth;
72 elide: Text.ElideRight
73 font.weight: Font.DemiBold
74 color: Theme.palette.selected.foreground
79 objectName: "oldPriceLabel"
80 width: parent.labelWidth;
81 elide: Text.ElideRight
82 horizontalAlignment: parent.labels === 3 ? Text.AlignHCenter : Text.AlignRight
87 width: parent.labelWidth;
88 elide: Text.ElideRight
89 horizontalAlignment: Text.AlignRight
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