diff options
Diffstat (limited to 'widgets')
| -rw-r--r-- | widgets/Box.qml | 16 | ||||
| -rw-r--r-- | widgets/MaterialIcon.qml | 7 |
2 files changed, 23 insertions, 0 deletions
diff --git a/widgets/Box.qml b/widgets/Box.qml new file mode 100644 index 0000000..c0d7f06 --- /dev/null +++ b/widgets/Box.qml @@ -0,0 +1,16 @@ +import "root:/config" +import QtQuick.Layouts + +GridLayout { + property bool vertical: false + property real spacing: Appearance.spacing.small + property bool homogenous: false + + flow: vertical ? GridLayout.TopToBottom : GridLayout.LeftToRight + uniformCellWidths: homogenous && vertical + uniformCellHeights: homogenous && !vertical + rows: vertical ? -1 : 1 + columns: vertical ? 1 : -1 + rowSpacing: spacing + columnSpacing: spacing +} diff --git a/widgets/MaterialIcon.qml b/widgets/MaterialIcon.qml new file mode 100644 index 0000000..0115abf --- /dev/null +++ b/widgets/MaterialIcon.qml @@ -0,0 +1,7 @@ +import "root:/config" +import QtQuick + +Text { + font.family: Appearance.font.family.material + font.pointSize: Appearance.font.size.larger +} |