on xenial help sign in
Fix app preview.
97e108fYing-Chun Liu
Dash/Apps/AppPreview.qml+9−22
@@ -55,22 +55,20 @@ DashPreview {
55 }
55 }
56 }
56 }
57
57
58− title: Label {
58+ title: AppInfo {
59− id: title
60− objectName: "titleLabel"
59+ objectName: "appInfo"
61 anchors {
60 anchors {
61+ top: parent.top
62+ topMargin: units.gu(2)
62 left: parent.left
63 left: parent.left
63 right: parent.right
64 right: parent.right
64 }
65 }
65
66
66− elide: Text.ElideRight
67− fontSize: "x-large"
68− font.weight: Font.Light
69− color: Theme.palette.selected.backgroundText
70− opacity: 0.9
71− text: root.previewData.title
67+ appName: root.previewData.title
72− style: Text.Raised
68+ icon: root.previewData.appIcon
73− styleColor: "black"
69+ rating: Math.round(root.previewData.rating * 10)
70+ reviews: root.previewData.numRatings
71+ rated: root.previewData.infoMap["rated"] ? root.previewData.infoMap["rated"].value : 0
74 }
72 }
75
73
76 Component {
74 Component {
@@ -151,17 +149,6 @@ DashPreview {
151 body: Column {
149 body: Column {
152 spacing: units.gu(1)
150 spacing: units.gu(1)
153
151
154− AppInfo {
155− objectName: "appInfo"
156− anchors { left: parent.left; right: parent.right }
157−
158− appName: root.previewData.title
159− icon: root.previewData.appIcon
160− rating: Math.round(root.previewData.rating * 10)
161− reviews: root.previewData.numRatings
162− rated: root.previewData.infoMap["rated"] ? root.previewData.infoMap["rated"].value : 0
163− }
164−
165 Label {
152 Label {
166 anchors { left: parent.left; right: parent.right }
153 anchors { left: parent.left; right: parent.right }
167 text: root.previewData.description
154 text: root.previewData.description
Dash/DashPreview.qml+3−1
@@ -105,7 +105,9 @@ Rectangle {
105 right: parent.right
105 right: parent.right
106 top: headerRow.bottom
106 top: headerRow.bottom
107 bottom: parent.bottom
107 bottom: parent.bottom
108+ topMargin: root.contentSpacing
109+ leftMargin: root.contentSpacing
108− margins: root.contentSpacing
110+ rightMargin: root.contentSpacing
109 }
111 }
110
112
111 spacing: units.gu(2)
113 spacing: units.gu(2)