2import Ubuntu.Components 0.1
6 property alias mascot: mascotImage.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: mascotImage.status === Image.Ready || title || price
14 height: row.height > 0 ? row.height + row.spacing * 2 : 0
18 objectName: "outerRow"
20 anchors { top: parent.top; left: parent.left; right: parent.right; margins: spacing }
25 objectName: "mascotShape"
29 visible: image.status === Image.Ready
33 sourceSize { width: mascotShape.width; height: mascotShape.height }
39 width: parent.width - x
43 anchors { left: parent.left; right: parent.right }
44 elide: Text.ElideRight
45 objectName: "titleLabel"
46 font.weight: Font.DemiBold
53 anchors { left: parent.left; right: parent.right }
54 elide: Text.ElideRight
55 visible: titleLabel.text && text
61 anchors { left: parent.left; right: parent.right }
63 property int labels: {
64 var labels = 1; // price always visible
65 if (oldPriceLabel.text !== "") labels += 1;
66 if (altPriceLabel.text !== "") labels += 1;
69 property real labelWidth: width / labels
73 width: parent.labelWidth
74 elide: Text.ElideRight
75 font.weight: Font.DemiBold
76 color: Theme.palette.selected.foreground
81 objectName: "oldPriceLabel"
82 width: parent.labelWidth
83 elide: Text.ElideRight
84 horizontalAlignment: parent.labels === 3 ? Text.AlignHCenter : Text.AlignRight
89 width: parent.labelWidth
90 elide: Text.ElideRight
91 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