From 9a2de3e103cc50717cb33a81f807c6a81eca17b4 Mon Sep 17 00:00:00 2001 From: NamedKitten Date: Mon, 15 Oct 2018 17:39:04 +0100 Subject: [PATCH] Minor tweaks. --- src/qml/main.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/qml/main.qml b/src/qml/main.qml index 9096dfb..e813bc4 100644 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -7,7 +7,7 @@ import player 1.0 import "codes.js" as LanguageCodes -ApplicationWindow { +Window { id: mainWindow title: "Qt Quick Controls 2" visible: true @@ -276,7 +276,7 @@ ApplicationWindow { Rectangle { id: titleBar - height: Screen.width / 24 + height: Screen.height / 24 anchors.right: parent.right anchors.rightMargin: parent.width / 128 anchors.left: parent.left @@ -334,8 +334,6 @@ ApplicationWindow { Rectangle { id: subtitlesMenuBackground - height: controlsBar.height + (progressBar.topPadding * 2) - - (progressBackground.height * 2) anchors.fill: subtitlesMenu Layout.fillWidth: true Layout.fillHeight: true @@ -443,6 +441,7 @@ ApplicationWindow { anchors.left: parent.left anchors.right: parent.right anchors.bottomMargin: 0 + anchors.topMargin: progressBackground.height + handleRect.height bottomPadding: 0 @@ -468,6 +467,7 @@ ApplicationWindow { } handle: Rectangle { + id: handleRect x: progressBar.leftPadding + progressBar.visualPosition * (progressBar.availableWidth - width) y: progressBar.topPadding + progressBar.availableHeight / 2 - height / 2