Skip to content

Commit c959092

Browse files
committed
fix(LateNightQML): align rate range labels
1 parent f6258b8 commit c959092

1 file changed

Lines changed: 17 additions & 13 deletions

File tree

res/skins/LateNightQML/Deck/RatePlaceholder.qml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -235,51 +235,55 @@ Item {
235235

236236
// Rate range labels: top = negative direction, center = default, bottom = positive direction
237237
Text {
238-
width: 8
238+
width: 7
239239
height: 16
240-
x: 1
240+
x: 3
241241
y: root.rateRangeTopLabelY(height)
242242
text: "-"
243243
font.family: "Open Sans"
244244
font.pixelSize: 12
245245
color: root.rateTextColor
246246
horizontalAlignment: Text.AlignHCenter
247+
verticalAlignment: Text.AlignVCenter
247248
}
248249

249250
Text {
250-
width: 8
251+
width: 18
251252
height: 16
252-
x: parent.width - width - 1
253-
y: root.rateRangeTopLabelY(height)
253+
x: 35
254+
y: root.rateRangeTopLabelY(height) + 1
254255
text: (rateRangeProxy.value * 100).toFixed(0)
255256
font.family: "Open Sans"
256-
font.pixelSize: 12
257+
font.pixelSize: 10
257258
color: root.rateTextColor
258-
horizontalAlignment: Text.AlignRight
259+
horizontalAlignment: Text.AlignHCenter
260+
verticalAlignment: Text.AlignVCenter
259261
}
260262

261263
Text {
262-
width: 8
264+
width: 7
263265
height: 16
264-
x: 1
266+
x: 3
265267
y: root.rateRangeBottomLabelY(height)
266268
text: "+"
267269
font.family: "Open Sans"
268270
font.pixelSize: 12
269271
color: root.rateTextColor
270272
horizontalAlignment: Text.AlignHCenter
273+
verticalAlignment: Text.AlignVCenter
271274
}
272275

273276
Text {
274-
width: 8
277+
width: 18
275278
height: 16
276-
x: parent.width - width - 1
279+
x: 35
277280
y: root.rateRangeBottomLabelY(height)
278281
text: (rateRangeProxy.value * 100).toFixed(0)
279282
font.family: "Open Sans"
280-
font.pixelSize: 12
283+
font.pixelSize: 10
281284
color: root.rateTextColor
282-
horizontalAlignment: Text.AlignRight
285+
horizontalAlignment: Text.AlignHCenter
286+
verticalAlignment: Text.AlignVCenter
283287
}
284288

285289
Skin.ControlFader {

0 commit comments

Comments
 (0)