1
0
Fork 0

Minor tweaks.

This commit is contained in:
NamedKitten 2018-10-15 17:39:04 +01:00
parent 4dfb005d69
commit 9a2de3e103

View file

@ -7,7 +7,7 @@ import player 1.0
import "codes.js" as LanguageCodes import "codes.js" as LanguageCodes
ApplicationWindow { Window {
id: mainWindow id: mainWindow
title: "Qt Quick Controls 2" title: "Qt Quick Controls 2"
visible: true visible: true
@ -276,7 +276,7 @@ ApplicationWindow {
Rectangle { Rectangle {
id: titleBar id: titleBar
height: Screen.width / 24 height: Screen.height / 24
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: parent.width / 128 anchors.rightMargin: parent.width / 128
anchors.left: parent.left anchors.left: parent.left
@ -334,8 +334,6 @@ ApplicationWindow {
Rectangle { Rectangle {
id: subtitlesMenuBackground id: subtitlesMenuBackground
height: controlsBar.height + (progressBar.topPadding * 2)
- (progressBackground.height * 2)
anchors.fill: subtitlesMenu anchors.fill: subtitlesMenu
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
@ -443,6 +441,7 @@ ApplicationWindow {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
anchors.bottomMargin: 0 anchors.bottomMargin: 0
anchors.topMargin: progressBackground.height + handleRect.height
bottomPadding: 0 bottomPadding: 0
@ -468,6 +467,7 @@ ApplicationWindow {
} }
handle: Rectangle { handle: Rectangle {
id: handleRect
x: progressBar.leftPadding + progressBar.visualPosition x: progressBar.leftPadding + progressBar.visualPosition
* (progressBar.availableWidth - width) * (progressBar.availableWidth - width)
y: progressBar.topPadding + progressBar.availableHeight / 2 - height / 2 y: progressBar.topPadding + progressBar.availableHeight / 2 - height / 2