diff options
author | Scott Murray <scott.murray@konsulko.com> | 2022-06-17 21:29:11 -0400 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2022-06-17 21:31:33 -0400 |
commit | 06e706215977c1c314a9316e5b853ec6fb54e304 (patch) | |
tree | 1ed3dca9bb7ecd82793cca3758d74c639f8b0772 | |
parent | 4e12aba8bd3603af46c5ea139d85f1f23509264f (diff) |
Fix layout issuesmarlin
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 <scott.murray@konsulko.com>
Change-Id: I4ed6e75ea5fccfda9482eec631779cb303e47a60
-rw-r--r-- | app/Radio.qml | 12 |
1 files changed, 8 insertions, 4 deletions
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 |