forked from Shinonome/dots-hyprland
boxes: add spacing prop
This commit is contained in:
@@ -5,7 +5,12 @@ import QtQuick
|
|||||||
// Qt Row is just a locked down Grid smh
|
// 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
|
// Calling it a Box because that's how row-or-column widget is called in Gtk
|
||||||
Grid {
|
Grid {
|
||||||
|
id: root
|
||||||
|
|
||||||
property bool vertical: false
|
property bool vertical: false
|
||||||
columns: vertical ? 1 : -1
|
columns: vertical ? 1 : -1
|
||||||
rows: 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
|
// 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
|
// Calling it a Box because that's how row-or-column widget is called in Gtk
|
||||||
GridLayout {
|
GridLayout {
|
||||||
|
id: root
|
||||||
|
|
||||||
property bool vertical: false
|
property bool vertical: false
|
||||||
columns: vertical ? 1 : -1
|
columns: vertical ? 1 : -1
|
||||||
rows: vertical ? -1 : 1
|
rows: vertical ? -1 : 1
|
||||||
|
|
||||||
|
property alias spacing: root.rowSpacing
|
||||||
|
columnSpacing: rowSpacing
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user