This commit is contained in:
cmclark00 2024-10-12 20:05:19 -04:00
parent 096e640852
commit d30adb496f

View file

@ -62,19 +62,18 @@ ApplicationWindow {
Rectangle { Rectangle {
id: logoContainer id: logoContainer
implicitHeight: window.height/4 width: parent.width
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
// Specify the maximum size of the image fillMode: Image.PreserveAspectFit // Maintain the aspect ratio of the image
width: parent.width
height: parent.height
anchors.fill: parent
} }
} }
Rectangle { Rectangle {
color: backgroundColor color: backgroundColor
implicitWidth: window.width implicitWidth: window.width