mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
sdfsdf
This commit is contained in:
parent
d30adb496f
commit
0f8d1f1e44
1 changed files with 10 additions and 5 deletions
15
src/main.qml
15
src/main.qml
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue