Skip to content
This repository was archived by the owner on Apr 16, 2018. It is now read-only.

Commit ed68561

Browse files
Alex Morenosdroege
authored andcommitted
qt: consistent use of pixel sizes
See #124. We should switch everything to be device independent at some point, but this at least gives us a consistent UI for the time being.
1 parent 338b18a commit ed68561

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

qt/main.qml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,12 @@ ApplicationWindow {
144144
width: 150; height: 20
145145
Text {
146146
text: model.name
147-
font.pointSize: 13
147+
font.pixelSize: 13
148148
anchors.centerIn: parent
149149
}
150150

151151
Text {
152-
font.pointSize: 13
152+
font.pixelSize: 13
153153
font.family: "FontAwesome"
154154
text: FontAwesome.Icon.ChevronRight
155155
anchors.right: parent.right
@@ -205,7 +205,7 @@ ApplicationWindow {
205205
width: 150; height: 20
206206
Text {
207207
text: model.modelData.resolution.width + 'x' + model.modelData.resolution.height
208-
font.pointSize: 13
208+
font.pixelSize: 13
209209
anchors.centerIn: parent
210210
}
211211

@@ -255,7 +255,7 @@ ApplicationWindow {
255255
width: 150; height: 20
256256
Text {
257257
text: model.modelData.channels + 'channels'
258-
font.pointSize: 13
258+
font.pixelSize: 13
259259
anchors.centerIn: parent
260260
}
261261

@@ -305,7 +305,7 @@ ApplicationWindow {
305305
width: 150; height: 20
306306
Text {
307307
text: model.modelData.language
308-
font.pointSize: 13
308+
font.pixelSize: 13
309309
anchors.centerIn: parent
310310
}
311311

@@ -344,7 +344,7 @@ ApplicationWindow {
344344

345345
Text {
346346
id : openmedia
347-
font.pointSize: 17
347+
font.pixelSize: 17
348348
font.family: "FontAwesome"
349349
text: FontAwesome.Icon.FolderOpen
350350

@@ -360,7 +360,7 @@ ApplicationWindow {
360360

361361
Text {
362362
anchors.centerIn: parent
363-
font.pointSize: 17
363+
font.pixelSize: 17
364364
font.family: "FontAwesome"
365365
text: FontAwesome.Icon.StepBackward
366366
}
@@ -382,15 +382,15 @@ ApplicationWindow {
382382
PropertyChanges {
383383
target: playbutton
384384
text: FontAwesome.Icon.PlayCircle
385-
font.pointSize: 25
385+
font.pixelSize: 25
386386
}
387387
},
388388
State {
389389
name: "pause"
390390
PropertyChanges {
391391
target: playbutton
392392
text: FontAwesome.Icon.Pause
393-
font.pointSize: 17
393+
font.pixelSize: 17
394394
}
395395
}
396396
]
@@ -417,7 +417,7 @@ ApplicationWindow {
417417

418418
Text {
419419
anchors.centerIn: parent
420-
font.pointSize: 17
420+
font.pixelSize: 17
421421
font.family: "FontAwesome"
422422
text: FontAwesome.Icon.StepForward
423423
}
@@ -429,7 +429,7 @@ ApplicationWindow {
429429
Text {
430430
id: timelabel
431431
anchors.centerIn: parent
432-
font.pointSize: 13
432+
font.pixelSize: 13
433433
color: "black"
434434
text: {
435435
var current = new Date(Math.floor(slider.value / 1e6));
@@ -445,7 +445,7 @@ ApplicationWindow {
445445
anchors.centerIn: parent
446446
width: parent.width
447447
text: player.mediaInfo.title
448-
font.pointSize: 15
448+
font.pixelSize: 15
449449
elide: Text.ElideRight
450450
}
451451
}
@@ -456,7 +456,7 @@ ApplicationWindow {
456456
Text {
457457
id: durationlabel
458458
anchors.centerIn: parent
459-
font.pointSize: 13
459+
font.pixelSize: 13
460460
color: "black"
461461
text: {
462462
var duration = new Date(Math.floor(player.duration / 1e6));
@@ -467,7 +467,7 @@ ApplicationWindow {
467467

468468
Text {
469469
id: sub
470-
font.pointSize: 17
470+
font.pixelSize: 17
471471
font.family: "FontAwesome"
472472
text: FontAwesome.Icon.ClosedCaptions
473473
color: player.subtitleEnabled ? "red" : "black"
@@ -487,7 +487,7 @@ ApplicationWindow {
487487
Text {
488488
id : volume
489489
anchors.centerIn: parent
490-
font.pointSize: 17
490+
font.pixelSize: 17
491491
font.family: "FontAwesome"
492492
text: {
493493
if (volumeslider.value > volumeslider.maximumValue / 2) {
@@ -585,7 +585,7 @@ ApplicationWindow {
585585

586586
Text {
587587
id: cog
588-
font.pointSize: 17
588+
font.pixelSize: 17
589589
font.family: "FontAwesome"
590590
text: FontAwesome.Icon.Cog
591591

@@ -604,7 +604,7 @@ ApplicationWindow {
604604

605605
Text {
606606
id : fullscreen
607-
font.pointSize: 17
607+
font.pixelSize: 17
608608
font.family: "FontAwesome"
609609
text: FontAwesome.Icon.ResizeFull
610610

@@ -661,7 +661,7 @@ ApplicationWindow {
661661
x: sliderMouseArea.mouseX
662662

663663
Text {
664-
font.pointSize: 13
664+
font.pixelSize: 13
665665
color: "black"
666666
anchors.centerIn: parent
667667
text: {

0 commit comments

Comments
 (0)