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:
parent
2f715e196c
commit
bda1040151
1 changed files with 15 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue