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