summaryrefslogtreecommitdiff
path: root/qml/HomePage.qml
diff options
context:
space:
mode:
authorFabien Proriol <fabien.proriol@kazoe.org>2025-05-25 17:58:09 +0200
committerFabien Proriol <fabien.proriol@kazoe.org>2025-05-26 18:01:49 +0200
commit49daa163530ceabc9eaa8911ab96b5f799cfb552 (patch)
tree080d0b31eafd138cd8d47d5c2a52b75d3cfa6f28 /qml/HomePage.qml
Initial Commit
Diffstat (limited to 'qml/HomePage.qml')
-rw-r--r--qml/HomePage.qml55
1 files changed, 55 insertions, 0 deletions
diff --git a/qml/HomePage.qml b/qml/HomePage.qml
new file mode 100644
index 0000000..fbcfd70
--- /dev/null
+++ b/qml/HomePage.qml
@@ -0,0 +1,55 @@
+import QtQuick
+
+Rectangle {
+ id: homepage
+ clip: true
+ property string selected: "tests"
+
+ ListView {
+ id: category
+ anchors.fill: parent
+ model: xdgEntries.categories
+ delegate: Rectangle {
+ Component.onCompleted: {
+ console.debug("MANAGE CATEGORY [" + modelData + "]")
+ }
+
+ property bool isshow: modelData !== "System" && modelData !== "Debug"
+ width: homepage.width
+ height: (isshow) ? (entriesView.nbrow > 0 ? entriesView.height + categoryTitle.height : 0) : 0
+ color: currentTheme.base
+ visible: isshow && entriesView.nbrow > 0
+
+ Rectangle {
+ id: categoryTitle
+ height: 20
+ width: parent.width - 2
+ anchors.top: parent.top
+ anchors.left: parent.left
+ anchors.right: parent.right
+ anchors.leftMargin: 4
+ anchors.topMargin: 4
+ color: currentTheme.mid
+
+
+ Text {
+ anchors.top: parent.top
+ anchors.left: parent.left
+ anchors.bottom: parent.bottom
+ text: modelData
+ font.pixelSize: 15
+ font.bold: true
+ color: currentTheme.windowText
+ }
+ }
+
+ DesktopGridView {
+ id: entriesView
+ category: modelData
+ anchors.top: categoryTitle.bottom
+ anchors.left: parent.left
+ anchors.right: parent.right
+ }
+ }
+ }
+}