This commit is contained in:
cmclark00 2024-10-12 00:20:26 -04:00
parent 8ba05f5736
commit b278229302

View file

@ -63,20 +63,12 @@ ApplicationWindow {
Rectangle {
id: logoContainer
color: accentColor
implicitWidth: window.width
implicitHeight: window.height/4
Image {
id: image
source: "icons/logo_sxs_imager.png"
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)
}
}