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