This commit is contained in:
cmclark00 2024-10-12 20:12:29 -04:00
parent d30adb496f
commit 0f8d1f1e44

View file

@ -62,17 +62,22 @@ ApplicationWindow {
Rectangle { Rectangle {
id: logoContainer id: logoContainer
width: parent.width implicitHeight: window.height/4
height: window.height / 4 // Set explicit height based on the window
Image { Image {
id: image id: image
source: "icons/logo_sxs_imager.png" source: "icons/logo_sxs_imager.png"
anchors.fill: parent // This will make the image fill the parent completely anchors.fill: parent
fillMode: Image.PreserveAspectFit // Maintain the aspect ratio of the image fillMode: Image.PreserveAspectFit
onStatusChanged: {
if (status == Image.Error) {
console.log("Failed to load image:", source)
}
} }
} }
}
Rectangle { Rectangle {
color: backgroundColor color: backgroundColor