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) } }