nosignal-shell/widgets/BoxLayout.qml
2 * r + 2 * t 82139e9c2d refactor: workspaces use inner bar height
Also simplify boxpadding
2025-04-29 12:07:44 +10:00

16 lines
456 B
QML

import "root:/config"
import QtQuick.Layouts
GridLayout {
property bool vertical: false
property bool homogenous: false
property int spacing: Appearance.spacing.small
flow: vertical ? GridLayout.TopToBottom : GridLayout.LeftToRight
uniformCellWidths: homogenous || vertical
uniformCellHeights: homogenous || !vertical
rows: vertical ? -1 : 1
columns: vertical ? 1 : -1
rowSpacing: spacing
columnSpacing: spacing
}