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}` + } +}