Move source code to src/leek

This makes the package work again
This commit is contained in:
Toast 2025-05-22 22:52:08 +02:00
parent 1a626fddff
commit 6061590270
9 changed files with 16 additions and 10 deletions

View file

@ -1,90 +0,0 @@
import QtQuick
import QtQuick.Layouts
import QtQuick.Controls as Controls
import org.kde.kirigami as Kirigami
Kirigami.ApplicationWindow {
id: root
title: "Leek"
pageStack.initialPage: Kirigami.ScrollablePage {
title: "Mods"
Kirigami.CardsListView {
id: modsView
model: modListModel
delegate: modCardDelegate
}
}
Component {
id: modCardDelegate
Kirigami.AbstractCard {
// headerOrientation: Qt.Horizontal
contentItem: Item {
implicitWidth: modCardLayout.implicitWidth
implicitHeight: modCardLayout.implicitHeight
GridLayout {
id: modCardLayout
anchors {
left: parent.left
top: parent.top
right: parent.right
}
rowSpacing: Kirigami.Units.largeSpacing
columnSpacing: Kirigami.Units.largeSpacing
columns: root.wideScreen ? 4 : 2
// TODO: Replace this with an image once we can get them
Controls.BusyIndicator {
running: true
}
ColumnLayout {
Kirigami.Heading {
Layout.fillWidth: true
text: name
type: Kirigami.Heading.Type.Primary
}
Kirigami.Separator {
Layout.fillWidth: true
}
Controls.Label {
Layout.fillWidth: true
wrapMode: Text.WordWrap
text: description ? description : "No description available"
}
}
ColumnLayout {
Layout.alignment: Qt.AlignRight
Controls.Switch {
text: "Enabled"
checked: true
}
Controls.Button {
text: "Delete"
}
}
}
}
}
}
ListModel {
id: modListModel
ListElement {
name: "DivaNoSpy"
description: "Disables project diva's telemetry"
}
ListElement {
name: "exPatch"
description: "Unlocks extreme difficulty immediately"
}
ListElement {
name: "Mod with no description"
}
ListElement {
name: "Very long description"
description: "
()"
}
}
}