added some resolution independent fixes

This commit is contained in:
eximus
2017-04-29 16:37:04 +01:00
parent 8d62091aea
commit 8829c48ae4

View File

@@ -5,8 +5,8 @@ import QtMultimedia 5.8
Rectangle { Rectangle {
// Main Container // Main Container
id: container id: container
width: 1920 //width: 1920
height: 1080 //height: 1080
LayoutMirroring.enabled: Qt.locale().textDirection == Qt.RightToLeft LayoutMirroring.enabled: Qt.locale().textDirection == Qt.RightToLeft
LayoutMirroring.childrenInherit: true LayoutMirroring.childrenInherit: true
@@ -53,24 +53,24 @@ Rectangle {
} }
// Set Background Video // Set Background Video
MediaPlayer { //MediaPlayer {
id: mediaplayer // id: mediaplayer
autoPlay: true // autoPlay: true
muted: true // muted: true
playlist: Playlist { // playlist: Playlist {
id: playlist // id: playlist
playbackMode: Playlist.Random // playbackMode: Playlist.Random
onLoaded: { // onLoaded: {
mediaplayer.play() // mediaplayer.play()
} // }
} // }
} //}
VideoOutput { //VideoOutput {
fillMode: VideoOutput.PreserveAspectCrop // fillMode: VideoOutput.PreserveAspectCrop
anchors.fill: parent // anchors.fill: parent
source: mediaplayer // source: mediaplayer
} //}
MouseArea { MouseArea {
anchors.fill: parent; anchors.fill: parent;
@@ -88,17 +88,17 @@ Rectangle {
Rectangle { Rectangle {
id: login_container id: login_container
y: 852
width: 445 y: parent.height * 0.8 //852
height: 82 width: parent.width * 0.23 //445
height: parent.height * 0.08 //82
color: "transparent" color: "transparent"
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 184 anchors.leftMargin: 184
Rectangle { Rectangle {
id: username_row id: username_row
y: 0 height: parent.height * 0.36 //30
height: 30
color: "transparent" color: "transparent"
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 0 anchors.leftMargin: 0