diff --git a/src/leek/qml/ModPage.qml b/src/leek/qml/ModPage.qml index 7e59ce1..ab1e5d3 100644 --- a/src/leek/qml/ModPage.qml +++ b/src/leek/qml/ModPage.qml @@ -83,9 +83,28 @@ Kirigami.Page { anchors.top: header.bottom } } - } - Controls.Label { - anchors.centerIn: parent - text: `Hello from ${mod.name}` + + // Description + ColumnLayout { + Kirigami.Heading { + // TODO: this should be a short description of some sort + text: mod.name + type: Kirigami.Heading.Type.Primary + } + Controls.Label { + 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" + } + } + } + } } }