Qml/ModPage: show description

This commit is contained in:
Toast 2025-06-05 11:33:18 +02:00
parent 446ca73a91
commit 42943a4bd5

View file

@ -83,9 +83,28 @@ Kirigami.Page {
anchors.top: header.bottom
}
}
// Description
ColumnLayout {
Kirigami.Heading {
// TODO: this should be a short description of some sort
text: mod.name
type: Kirigami.Heading.Type.Primary
}
Controls.Label {
anchors.centerIn: parent
text: `Hello from ${mod.name}`
readonly property bool hasDescription: mod.longDescription || mod.description
text: {
if (hasDescription) {
if (mod.longDescription) {
text = mod.longDescription
} else {
text = mod.description
}
} else {
text = "The description for this mod is not available"
}
}
}
}
}
}