This commit is contained in:
cmclark00 2024-10-12 00:15:22 -04:00
parent 6e8cb1b359
commit 8ba05f5736

View file

@ -27,7 +27,6 @@ ApplicationWindow {
minimumHeight: imageWriter.isEmbeddedMode() ? -1 : 450 minimumHeight: imageWriter.isEmbeddedMode() ? -1 : 450
title: qsTr("Retro Imager v0.1") title: qsTr("Retro Imager v0.1")
FontLoader {id: roboto; source: "fonts/Roboto-Regular.ttf"} FontLoader {id: roboto; source: "fonts/Roboto-Regular.ttf"}
FontLoader {id: robotoLight; source: "fonts/Roboto-Light.ttf"} FontLoader {id: robotoLight; source: "fonts/Roboto-Light.ttf"}
FontLoader {id: robotoBold; source: "fonts/Roboto-Bold.ttf"} FontLoader {id: robotoBold; source: "fonts/Roboto-Bold.ttf"}
@ -69,14 +68,15 @@ ApplicationWindow {
Image { Image {
id: image id: image
source: "icons/logo_sxs_imager.png" source: "icons/logo_sxs_imager.png"
// Specify the maximum size of the image
width: window.width
height: window.height / 4
smooth: true smooth: true
antialiasing: 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)
} }
} }