mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
boxes: add spacing prop
This commit is contained in:
@@ -5,7 +5,12 @@ import QtQuick
|
||||
// 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
|
||||
}
|
||||
|
||||
@@ -7,7 +7,12 @@ import QtQuick.Layouts
|
||||
// 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
|
||||
GridLayout {
|
||||
id: root
|
||||
|
||||
property bool vertical: false
|
||||
columns: vertical ? 1 : -1
|
||||
rows: vertical ? -1 : 1
|
||||
|
||||
property alias spacing: root.rowSpacing
|
||||
columnSpacing: rowSpacing
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user