group modules
This commit is contained in:
parent
24c90dae11
commit
48c58e2fbf
4 changed files with 63 additions and 13 deletions
26
modules/BarGroup.qml
Normal file
26
modules/BarGroup.qml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import QtQuick
|
||||
import "." as M
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
|
||||
default property alias content: row.children
|
||||
|
||||
color: "transparent"
|
||||
border.color: M.Theme.base02
|
||||
border.width: 1
|
||||
radius: M.Theme.radius
|
||||
|
||||
visible: row.visibleChildren.length > 0
|
||||
|
||||
implicitWidth: row.implicitWidth + _pad * 2
|
||||
implicitHeight: row.implicitHeight + _pad * 2
|
||||
|
||||
readonly property int _pad: 6
|
||||
|
||||
Row {
|
||||
id: row
|
||||
anchors.centerIn: parent
|
||||
spacing: M.Theme.moduleSpacing + 2
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue