From 147a454d409bbb2c4a243ca67e129284e5f81c3c Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Fri, 17 Jun 2022 21:29:11 -0400 Subject: Fix layout issues Fixes: - Tweak the top image anchoring and scaling so it is not covered by the control bar. - Tweak some item preferred heights to match the layout of the mediaplayer, and unify the control bar position in the two apps at a position closer to mid-screen. Bug-AGL: SPEC-4444 Signed-off-by: Scott Murray Change-Id: I4ed6e75ea5fccfda9482eec631779cb303e47a60 (cherry picked from commit 06e706215977c1c314a9316e5b853ec6fb54e304) --- app/Radio.qml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'app') diff --git a/app/Radio.qml b/app/Radio.qml index f2aa727..bd67c84 100644 --- a/app/Radio.qml +++ b/app/Radio.qml @@ -51,16 +51,19 @@ ApplicationWindow { Item { Layout.fillWidth: true Layout.fillHeight: true - Layout.preferredHeight: 3 + Layout.preferredHeight: 1080 clip: true + Image { + anchors.top: parent.top anchors.left: parent.left anchors.right: parent.right - anchors.bottom: parent.bottom - fillMode: Image.PreserveAspectFit + anchors.bottom: controls.top + fillMode: Image.Stretch source: './images/HMI_Radio_Equalizer.svg' } Item { + id: controls anchors.left: parent.left anchors.right: parent.right anchors.bottom: parent.bottom @@ -242,7 +245,8 @@ ApplicationWindow { Item { Layout.fillWidth: true Layout.fillHeight: true - Layout.preferredHeight: 2 + Layout.preferredHeight: 480 + ListView { anchors.fill: parent anchors.leftMargin: 50 -- cgit 1.2.3-korg