on xenial help sign in
cosmetic changes
efd5a5dAndrea Cimitan
qml/Dash/Previews/PreviewRatingInput.qml+8−18
@@ -70,15 +70,17 @@ PreviewWidget {
70 left: parent.left
70 left: parent.left
71 right: parent.right
71 right: parent.right
72 }
72 }
73− implicitHeight: rating.height
73+ implicitHeight: ratingLabel.height + rating.height
74 visible: widgetData["visible"] !== "review"
74 visible: widgetData["visible"] !== "review"
75
75
76 Label {
76 Label {
77+ id: ratingLabel
77 objectName: "ratingLabel"
78 objectName: "ratingLabel"
78 anchors {
79 anchors {
79− verticalCenter: parent.verticalCenter
80 left: parent.left
80 left: parent.left
81+ right: parent.right
81 }
82 }
83+ fontSize: "large"
82 color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText
84 color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText
83 opacity: .8
85 opacity: .8
84 text: widgetData["rating-label"] || i18n.tr("Rate this")
86 text: widgetData["rating-label"] || i18n.tr("Rate this")
@@ -88,8 +90,8 @@ PreviewWidget {
88 id: rating
90 id: rating
89 objectName: "rating"
91 objectName: "rating"
90 anchors {
92 anchors {
91− verticalCenter: parent.verticalCenter
93+ top: ratingLabel.bottom
92− right: parent.right
94+ left: parent.left
93 }
95 }
94 size: 5
96 size: 5
95 onValueChanged: {
97 onValueChanged: {
@@ -103,7 +105,7 @@ PreviewWidget {
103
105
104 Item {
106 Item {
105 id: reviewContainer
107 id: reviewContainer
106− implicitHeight: reviewLabel.implicitHeight + reviewSubmitContainer.implicitHeight + anchors.topMargin
108+ implicitHeight: reviewSubmitContainer.implicitHeight + anchors.topMargin
107
109
108 readonly property real innerMargin: units.gu(1)
110 readonly property real innerMargin: units.gu(1)
109
111
@@ -126,19 +128,6 @@ PreviewWidget {
126 }
128 }
127 }
129 }
128
130
129− Label {
130− objectName: "reviewLabel"
131− id: reviewLabel
132− anchors {
133− top: parent.top
134− left: parent.left
135− right: parent.right
136− }
137− color: root.scopeStyle ? root.scopeStyle.foreground : theme.palette.normal.baseText
138− opacity: .8
139− text: widgetData["review-label"] || i18n.tr("Add a review")
140− }
141−
142 Item {
131 Item {
143 id: reviewSubmitContainer
132 id: reviewSubmitContainer
144 anchors {
133 anchors {
@@ -164,6 +153,7 @@ PreviewWidget {
164 right: submitButton.left
153 right: submitButton.left
165 rightMargin: reviewContainer.innerMargin
154 rightMargin: reviewContainer.innerMargin
166 }
155 }
156+ placeholderText: widgetData["review-label"] || i18n.tr("Add a review")
167 }
157 }
168
158
169 Button {
159 Button {