playback/player: 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.
This commit is contained in:
Alex Moreno 2015-10-27 17:32:27 +08:00 committed by Sebastian Dröge
parent dbc1f82678
commit 5dbeabcb76

View file

@ -144,12 +144,12 @@ ApplicationWindow {
width: 150; height: 20 width: 150; height: 20
Text { Text {
text: model.name text: model.name
font.pointSize: 13 font.pixelSize: 13
anchors.centerIn: parent anchors.centerIn: parent
} }
Text { Text {
font.pointSize: 13 font.pixelSize: 13
font.family: "FontAwesome" font.family: "FontAwesome"
text: FontAwesome.Icon.ChevronRight text: FontAwesome.Icon.ChevronRight
anchors.right: parent.right anchors.right: parent.right
@ -205,7 +205,7 @@ ApplicationWindow {
width: 150; height: 20 width: 150; height: 20
Text { Text {
text: model.modelData.resolution.width + 'x' + model.modelData.resolution.height text: model.modelData.resolution.width + 'x' + model.modelData.resolution.height
font.pointSize: 13 font.pixelSize: 13
anchors.centerIn: parent anchors.centerIn: parent
} }
@ -255,7 +255,7 @@ ApplicationWindow {
width: 150; height: 20 width: 150; height: 20
Text { Text {
text: model.modelData.channels + 'channels' text: model.modelData.channels + 'channels'
font.pointSize: 13 font.pixelSize: 13
anchors.centerIn: parent anchors.centerIn: parent
} }
@ -305,7 +305,7 @@ ApplicationWindow {
width: 150; height: 20 width: 150; height: 20
Text { Text {
text: model.modelData.language text: model.modelData.language
font.pointSize: 13 font.pixelSize: 13
anchors.centerIn: parent anchors.centerIn: parent
} }
@ -344,7 +344,7 @@ ApplicationWindow {
Text { Text {
id : openmedia id : openmedia
font.pointSize: 17 font.pixelSize: 17
font.family: "FontAwesome" font.family: "FontAwesome"
text: FontAwesome.Icon.FolderOpen text: FontAwesome.Icon.FolderOpen
@ -360,7 +360,7 @@ ApplicationWindow {
Text { Text {
anchors.centerIn: parent anchors.centerIn: parent
font.pointSize: 17 font.pixelSize: 17
font.family: "FontAwesome" font.family: "FontAwesome"
text: FontAwesome.Icon.StepBackward text: FontAwesome.Icon.StepBackward
} }
@ -382,7 +382,7 @@ ApplicationWindow {
PropertyChanges { PropertyChanges {
target: playbutton target: playbutton
text: FontAwesome.Icon.PlayCircle text: FontAwesome.Icon.PlayCircle
font.pointSize: 25 font.pixelSize: 25
} }
}, },
State { State {
@ -390,7 +390,7 @@ ApplicationWindow {
PropertyChanges { PropertyChanges {
target: playbutton target: playbutton
text: FontAwesome.Icon.Pause text: FontAwesome.Icon.Pause
font.pointSize: 17 font.pixelSize: 17
} }
} }
] ]
@ -417,7 +417,7 @@ ApplicationWindow {
Text { Text {
anchors.centerIn: parent anchors.centerIn: parent
font.pointSize: 17 font.pixelSize: 17
font.family: "FontAwesome" font.family: "FontAwesome"
text: FontAwesome.Icon.StepForward text: FontAwesome.Icon.StepForward
} }
@ -429,7 +429,7 @@ ApplicationWindow {
Text { Text {
id: timelabel id: timelabel
anchors.centerIn: parent anchors.centerIn: parent
font.pointSize: 13 font.pixelSize: 13
color: "black" color: "black"
text: { text: {
var current = new Date(Math.floor(slider.value / 1e6)); var current = new Date(Math.floor(slider.value / 1e6));
@ -445,7 +445,7 @@ ApplicationWindow {
anchors.centerIn: parent anchors.centerIn: parent
width: parent.width width: parent.width
text: player.mediaInfo.title text: player.mediaInfo.title
font.pointSize: 15 font.pixelSize: 15
elide: Text.ElideRight elide: Text.ElideRight
} }
} }
@ -456,7 +456,7 @@ ApplicationWindow {
Text { Text {
id: durationlabel id: durationlabel
anchors.centerIn: parent anchors.centerIn: parent
font.pointSize: 13 font.pixelSize: 13
color: "black" color: "black"
text: { text: {
var duration = new Date(Math.floor(player.duration / 1e6)); var duration = new Date(Math.floor(player.duration / 1e6));
@ -467,7 +467,7 @@ ApplicationWindow {
Text { Text {
id: sub id: sub
font.pointSize: 17 font.pixelSize: 17
font.family: "FontAwesome" font.family: "FontAwesome"
text: FontAwesome.Icon.ClosedCaptions text: FontAwesome.Icon.ClosedCaptions
color: player.subtitleEnabled ? "red" : "black" color: player.subtitleEnabled ? "red" : "black"
@ -487,7 +487,7 @@ ApplicationWindow {
Text { Text {
id : volume id : volume
anchors.centerIn: parent anchors.centerIn: parent
font.pointSize: 17 font.pixelSize: 17
font.family: "FontAwesome" font.family: "FontAwesome"
text: { text: {
if (volumeslider.value > volumeslider.maximumValue / 2) { if (volumeslider.value > volumeslider.maximumValue / 2) {
@ -585,7 +585,7 @@ ApplicationWindow {
Text { Text {
id: cog id: cog
font.pointSize: 17 font.pixelSize: 17
font.family: "FontAwesome" font.family: "FontAwesome"
text: FontAwesome.Icon.Cog text: FontAwesome.Icon.Cog
@ -604,7 +604,7 @@ ApplicationWindow {
Text { Text {
id : fullscreen id : fullscreen
font.pointSize: 17 font.pixelSize: 17
font.family: "FontAwesome" font.family: "FontAwesome"
text: FontAwesome.Icon.ResizeFull text: FontAwesome.Icon.ResizeFull
@ -661,7 +661,7 @@ ApplicationWindow {
x: sliderMouseArea.mouseX x: sliderMouseArea.mouseX
Text { Text {
font.pointSize: 13 font.pixelSize: 13
color: "black" color: "black"
anchors.centerIn: parent anchors.centerIn: parent
text: { text: {