import QtQuick
import QtQuick.Layouts

Rectangle {
    default property alias content: inner.data

    property int minWidth: 0

    color:  Theme.bg1
    radius: Theme.radius
    height: Theme.barHeight - 8
    width:  Math.max(inner.implicitWidth + Theme.spacing * 2, minWidth)
    clip:   true

    RowLayout {
        id: inner
        anchors.centerIn: parent
        spacing: 5
    }
}
