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