This commit is contained in:
cmclark00 2024-10-12 20:27:08 -04:00
parent 0f8d1f1e44
commit 87310d5392

View file

@ -60,25 +60,33 @@ ApplicationWindow {
id: bg id: bg
spacing: 0 spacing: 0
Rectangle { Rectangle {
id: logoContainer id: logoContainer
color: accentColor
implicitHeight: window.height/4 implicitHeight: window.height/4
Image { Image {
id: image id: image
source: "icons/logo_sxs_imager.png" source: "icons/logo_sxs_imager.png"
anchors.fill: parent width: window.width * 1
height: window.height / 3
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
horizontalAlignment: Image.AlignLeft
smooth: true
antialiasing: true
onStatusChanged: { anchors {
if (status == Image.Error) { left: logoContainer.left
console.log("Failed to load image:", source) leftMargin: 40
top: logoContainer.top
bottom: logoContainer.bottom
topMargin: window.height / 25
bottomMargin: window.height / 25
} }
} }
} }
}
Rectangle { Rectangle {
color: backgroundColor color: backgroundColor
implicitWidth: window.width implicitWidth: window.width