Qml/ModPage: add icon

The icon will change depending on the type of mod that was installed
Only if it was installed from GameBanana, otherwise it will show
dma's logo or a generic one
This commit is contained in:
Toast 2025-06-05 00:51:33 +02:00
parent 2f715e196c
commit bda1040151

View file

@ -31,6 +31,15 @@ Kirigami.Page {
GridLayout {
id: headerContents
RowLayout {
// Icon
Kirigami.Icon {
implicitHeight: Kirigami.Units.iconSizes.huge
implicitWidth: implicitHeight
source: "package-x-generic"
}
// Name and author
ColumnLayout {
Controls.Label {
text: `Name: ${mod.name}`
@ -40,6 +49,7 @@ Kirigami.Page {
}
}
}
}
Kirigami.Separator {
width: header.width