From c2e78cc11c02db05a8d0a4680e715de8691b516a Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 26 Apr 2025 22:36:46 +1000 Subject: feat: basic quickshell bar --- widgets/Box.qml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 widgets/Box.qml (limited to 'widgets/Box.qml') 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 +} -- cgit v1.2.3-freya