From 1cfe1df782d0b7ac9ccb0e421379b33b7d2cb908 Mon Sep 17 00:00:00 2001 From: NamedKitten Date: Sun, 14 Oct 2018 22:33:21 +0100 Subject: [PATCH] Fix controls bar scaling. --- src/qml/main.qml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/qml/main.qml b/src/qml/main.qml index 8575c1a..4badfd0 100644 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -193,7 +193,6 @@ ApplicationWindow { controlsBackground.visible = false titleBar.visible = false titleBackground.visible = false - controlsBar.height = 0 } function showControls() { @@ -202,7 +201,6 @@ ApplicationWindow { controlsBackground.visible = true titleBar.visible = true titleBackground.visible = true - controlsBar.height = renderer.height / 24 } Dialog { @@ -278,7 +276,7 @@ ApplicationWindow { Rectangle { id: titleBar - height: renderer.height / 24 + height: Screen.width / 24 anchors.right: parent.right anchors.rightMargin: parent.width / 128 anchors.left: parent.left @@ -324,7 +322,7 @@ ApplicationWindow { Rectangle { id: controlsBar - height: renderer.height / 24 + height: Screen.height / 24 anchors.right: parent.right anchors.rightMargin: parent.width / 128 anchors.left: parent.left @@ -456,7 +454,7 @@ ApplicationWindow { id: progressBackground x: progressBar.leftPadding y: progressBar.topPadding + progressBar.availableHeight / 2 - height / 2 - implicitHeight: (renderer.height / 256) < 2 ? 2 : renderer.height / 256 + implicitHeight: (Screen.height / 256) < 2 ? 2 : Screen.height / 256 width: progressBar.availableWidth height: implicitHeight color: Qt.rgba(255, 255, 255, 0.4)