From 8ba05f5736b0cbe742269a83bed6cdbc0648eb9d Mon Sep 17 00:00:00 2001 From: cmclark00 Date: Sat, 12 Oct 2024 00:15:22 -0400 Subject: [PATCH] hj --- src/main.qml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main.qml b/src/main.qml index 70769f6..685b685 100644 --- a/src/main.qml +++ b/src/main.qml @@ -27,7 +27,6 @@ ApplicationWindow { minimumHeight: imageWriter.isEmbeddedMode() ? -1 : 450 title: qsTr("Retro Imager v0.1") - FontLoader {id: roboto; source: "fonts/Roboto-Regular.ttf"} FontLoader {id: robotoLight; source: "fonts/Roboto-Light.ttf"} FontLoader {id: robotoBold; source: "fonts/Roboto-Bold.ttf"} @@ -69,14 +68,15 @@ ApplicationWindow { Image { id: image source: "icons/logo_sxs_imager.png" - - // Specify the maximum size of the image - width: window.width - height: window.height / 4 - smooth: true antialiasing: true - } + + // Center the image within the parent (logoContainer) + anchors.centerIn: parent + + // Optional: set a maximum size for the image if needed + width: Math.min(parent.width * 0.5, sourceSize.width) + height: Math.min(parent.height * 0.75, sourceSize.height) } }