forked from Shinonome/dots-hyprland
refactor flexible grids into Box
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
pragma ComponentBehavior: Bound
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
// Box, Layout version
|
||||
// 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
|
||||
GridLayout {
|
||||
property bool vertical: false
|
||||
columns: vertical ? 1 : -1
|
||||
rows: vertical ? -1 : 1
|
||||
}
|
||||
Reference in New Issue
Block a user