Files
dots-hyprland/dots/.config/quickshell/ii/modules/common/widgets/Box.qml
T
2026-03-21 11:55:24 +01:00

17 lines
417 B
QML

pragma ComponentBehavior: Bound
import QtQuick
// A type that's both capable of being rows and columns
// Qt Row is just a locked down Grid smh
// Calling it a Box because that's how row-or-column widget is called in Gtk
Grid {
id: root
property bool vertical: false
columns: vertical ? 1 : -1
rows: vertical ? -1 : 1
property alias spacing: root.rowSpacing
columnSpacing: rowSpacing
}