From 2ad0e0597cbfd1e5bcc5bed6b7ce4093d71ba1cb Mon Sep 17 00:00:00 2001 From: Toast Date: Thu, 5 Jun 2025 00:23:16 +0200 Subject: [PATCH] Qml: add ModPage --- src/leek/qml/ModPage.qml | 48 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/leek/qml/ModPage.qml diff --git a/src/leek/qml/ModPage.qml b/src/leek/qml/ModPage.qml new file mode 100644 index 0000000..62c69ba --- /dev/null +++ b/src/leek/qml/ModPage.qml @@ -0,0 +1,48 @@ +import QtQuick +import QtQuick.Layouts +import QtQuick.Controls as Controls +import org.kde.kirigami as Kirigami +import Leek + +Kirigami.Page { + id: root + required property QMod mod + + title: "Local mod" + + ColumnLayout { + anchors { + top: parent.top + left: parent.left + right: parent.right + } + + Rectangle { + Layout.fillWidth: true + // Leave a one pixel gap for the header separator + Layout.topMargin: 1 - root.topPadding + Layout.leftMargin: -root.leftPadding + Layout.rightMargin: -root.rightPadding + + implicitHeight: headerContents.implicitHeight + (headerContents.anchors.topMargin * 2) + + color: "#804eb1" + + GridLayout { + id: headerContents + ColumnLayout { + Controls.Label { + text: `Name: ${mod.name}` + } + Controls.Label { + text: `Author placeholder` + } + } + } + } + } + Controls.Label { + anchors.centerIn: parent + text: `Hello from ${mod.name}` + } +}