summaryrefslogtreecommitdiff
path: root/widgets/Box.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-26 22:36:46 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-26 22:36:46 +1000
commitc2e78cc11c02db05a8d0a4680e715de8691b516a (patch)
tree5571d22dc11d9f5cf2de4932c822d368eebc2fb1 /widgets/Box.qml
parentclean (diff)
downloadcaelestia-shell-c2e78cc11c02db05a8d0a4680e715de8691b516a.tar.gz
caelestia-shell-c2e78cc11c02db05a8d0a4680e715de8691b516a.tar.bz2
caelestia-shell-c2e78cc11c02db05a8d0a4680e715de8691b516a.zip
feat: basic quickshell bar
Diffstat (limited to 'widgets/Box.qml')
-rw-r--r--widgets/Box.qml16
1 files changed, 16 insertions, 0 deletions
diff --git a/widgets/Box.qml b/widgets/Box.qml
new file mode 100644
index 0000000..c0d7f06
--- /dev/null
+++ b/widgets/Box.qml
@@ -0,0 +1,16 @@
+import "root:/config"
+import QtQuick.Layouts
+
+GridLayout {
+ property bool vertical: false
+ property real spacing: Appearance.spacing.small
+ property bool homogenous: false
+
+ flow: vertical ? GridLayout.TopToBottom : GridLayout.LeftToRight
+ uniformCellWidths: homogenous && vertical
+ uniformCellHeights: homogenous && !vertical
+ rows: vertical ? -1 : 1
+ columns: vertical ? 1 : -1
+ rowSpacing: spacing
+ columnSpacing: spacing
+}