From 42943a4bd5943957387db6982faa4b2af8de9d5c Mon Sep 17 00:00:00 2001 From: Toast Date: Thu, 5 Jun 2025 11:33:18 +0200 Subject: [PATCH] Qml/ModPage: show description --- src/leek/qml/ModPage.qml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) 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" + } + } + } + } } }