mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
hj
This commit is contained in:
parent
6e8cb1b359
commit
8ba05f5736
1 changed files with 7 additions and 7 deletions
14
src/main.qml
14
src/main.qml
|
@ -27,7 +27,6 @@ ApplicationWindow {
|
||||||
minimumHeight: imageWriter.isEmbeddedMode() ? -1 : 450
|
minimumHeight: imageWriter.isEmbeddedMode() ? -1 : 450
|
||||||
|
|
||||||
title: qsTr("Retro Imager v0.1")
|
title: qsTr("Retro Imager v0.1")
|
||||||
|
|
||||||
FontLoader {id: roboto; source: "fonts/Roboto-Regular.ttf"}
|
FontLoader {id: roboto; source: "fonts/Roboto-Regular.ttf"}
|
||||||
FontLoader {id: robotoLight; source: "fonts/Roboto-Light.ttf"}
|
FontLoader {id: robotoLight; source: "fonts/Roboto-Light.ttf"}
|
||||||
FontLoader {id: robotoBold; source: "fonts/Roboto-Bold.ttf"}
|
FontLoader {id: robotoBold; source: "fonts/Roboto-Bold.ttf"}
|
||||||
|
@ -69,14 +68,15 @@ ApplicationWindow {
|
||||||
Image {
|
Image {
|
||||||
id: image
|
id: image
|
||||||
source: "icons/logo_sxs_imager.png"
|
source: "icons/logo_sxs_imager.png"
|
||||||
|
|
||||||
// Specify the maximum size of the image
|
|
||||||
width: window.width
|
|
||||||
height: window.height / 4
|
|
||||||
|
|
||||||
smooth: true
|
smooth: true
|
||||||
antialiasing: true
|
antialiasing: true
|
||||||
}
|
|
||||||
|
// Center the image within the parent (logoContainer)
|
||||||
|
anchors.centerIn: parent
|
||||||
|
|
||||||
|
// Optional: set a maximum size for the image if needed
|
||||||
|
width: Math.min(parent.width * 0.5, sourceSize.width)
|
||||||
|
height: Math.min(parent.height * 0.75, sourceSize.height)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue