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,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`
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue