Minor tweaks.
This commit is contained in:
parent
4dfb005d69
commit
9a2de3e103
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue