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

Commit

Permalink
qt: consistent use of pixel sizes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Alex Moreno authored and sdroege committed Oct 27, 2015
1 parent 338b18a commit ed68561
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions qt/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ ApplicationWindow {
width: 150; height: 20
Text {
text: model.name
font.pointSize: 13
font.pixelSize: 13
anchors.centerIn: parent
}

Text {
font.pointSize: 13
font.pixelSize: 13
font.family: "FontAwesome"
text: FontAwesome.Icon.ChevronRight
anchors.right: parent.right
Expand Down Expand Up @@ -205,7 +205,7 @@ ApplicationWindow {
width: 150; height: 20
Text {
text: model.modelData.resolution.width + 'x' + model.modelData.resolution.height
font.pointSize: 13
font.pixelSize: 13
anchors.centerIn: parent
}

Expand Down Expand Up @@ -255,7 +255,7 @@ ApplicationWindow {
width: 150; height: 20
Text {
text: model.modelData.channels + 'channels'
font.pointSize: 13
font.pixelSize: 13
anchors.centerIn: parent
}

Expand Down Expand Up @@ -305,7 +305,7 @@ ApplicationWindow {
width: 150; height: 20
Text {
text: model.modelData.language
font.pointSize: 13
font.pixelSize: 13
anchors.centerIn: parent
}

Expand Down Expand Up @@ -344,7 +344,7 @@ ApplicationWindow {

Text {
id : openmedia
font.pointSize: 17
font.pixelSize: 17
font.family: "FontAwesome"
text: FontAwesome.Icon.FolderOpen

Expand All @@ -360,7 +360,7 @@ ApplicationWindow {

Text {
anchors.centerIn: parent
font.pointSize: 17
font.pixelSize: 17
font.family: "FontAwesome"
text: FontAwesome.Icon.StepBackward
}
Expand All @@ -382,15 +382,15 @@ ApplicationWindow {
PropertyChanges {
target: playbutton
text: FontAwesome.Icon.PlayCircle
font.pointSize: 25
font.pixelSize: 25
}
},
State {
name: "pause"
PropertyChanges {
target: playbutton
text: FontAwesome.Icon.Pause
font.pointSize: 17
font.pixelSize: 17
}
}
]
Expand All @@ -417,7 +417,7 @@ ApplicationWindow {

Text {
anchors.centerIn: parent
font.pointSize: 17
font.pixelSize: 17
font.family: "FontAwesome"
text: FontAwesome.Icon.StepForward
}
Expand All @@ -429,7 +429,7 @@ ApplicationWindow {
Text {
id: timelabel
anchors.centerIn: parent
font.pointSize: 13
font.pixelSize: 13
color: "black"
text: {
var current = new Date(Math.floor(slider.value / 1e6));
Expand All @@ -445,7 +445,7 @@ ApplicationWindow {
anchors.centerIn: parent
width: parent.width
text: player.mediaInfo.title
font.pointSize: 15
font.pixelSize: 15
elide: Text.ElideRight
}
}
Expand All @@ -456,7 +456,7 @@ ApplicationWindow {
Text {
id: durationlabel
anchors.centerIn: parent
font.pointSize: 13
font.pixelSize: 13
color: "black"
text: {
var duration = new Date(Math.floor(player.duration / 1e6));
Expand All @@ -467,7 +467,7 @@ ApplicationWindow {

Text {
id: sub
font.pointSize: 17
font.pixelSize: 17
font.family: "FontAwesome"
text: FontAwesome.Icon.ClosedCaptions
color: player.subtitleEnabled ? "red" : "black"
Expand All @@ -487,7 +487,7 @@ ApplicationWindow {
Text {
id : volume
anchors.centerIn: parent
font.pointSize: 17
font.pixelSize: 17
font.family: "FontAwesome"
text: {
if (volumeslider.value > volumeslider.maximumValue / 2) {
Expand Down Expand Up @@ -585,7 +585,7 @@ ApplicationWindow {

Text {
id: cog
font.pointSize: 17
font.pixelSize: 17
font.family: "FontAwesome"
text: FontAwesome.Icon.Cog

Expand All @@ -604,7 +604,7 @@ ApplicationWindow {

Text {
id : fullscreen
font.pointSize: 17
font.pixelSize: 17
font.family: "FontAwesome"
text: FontAwesome.Icon.ResizeFull

Expand Down Expand Up @@ -661,7 +661,7 @@ ApplicationWindow {
x: sliderMouseArea.mouseX

Text {
font.pointSize: 13
font.pixelSize: 13
color: "black"
anchors.centerIn: parent
text: {
Expand Down

0 comments on commit ed68561

Please sign in to comment.