From c7fa7504fe0a3fbf7c278ef8538d650ba38a1326 Mon Sep 17 00:00:00 2001 From: "Tom Dewey tom.dewey@raspberrypi.com" Date: Mon, 9 Oct 2023 14:12:42 +0100 Subject: [PATCH] qml: Rebalance button widths Removed preferred widths for OS, device buttons, and set one for the storage button. This allows the storage label (generally the longest) to fit on the control face reliably. --- src/main.qml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main.qml b/src/main.qml index 941aa76..5426338 100644 --- a/src/main.qml +++ b/src/main.qml @@ -135,7 +135,6 @@ ApplicationWindow { text: qsTr("Operating System") Layout.fillWidth: true Layout.preferredHeight: 17 - Layout.preferredWidth: 100 font.pixelSize: 12 font.family: robotoBold.name font.bold: true @@ -171,7 +170,6 @@ ApplicationWindow { text: qsTr("Storage") Layout.fillWidth: true Layout.preferredHeight: 17 - Layout.preferredWidth: 100 font.pixelSize: 12 font.family: robotoBold.name font.bold: true @@ -181,8 +179,12 @@ ApplicationWindow { ImButton { id: dstbutton text: qsTr("CHOOSE STORAGE") + spacing: 0 + padding: 0 + bottomPadding: 0 + topPadding: 0 Layout.minimumHeight: 40 - Layout.preferredWidth: 100 + Layout.preferredWidth: 200 Layout.fillWidth: true onClicked: { imageWriter.startDriveListPolling() @@ -191,7 +193,7 @@ ApplicationWindow { } Accessible.ignored: ospopup.visible || dstpopup.visible Accessible.description: qsTr("Select this button to change the destination storage device") - } + } } ColumnLayout {