import QtQuick 2.12
import QtQuick.Controls 2.12 as Controls
import QtQuick.Layouts 1.12

import Palette 1.0

Controls.GroupBox {
    id: control

    leftPadding: 40
    rightPadding: 40
    topPadding: 56 + label.height + 48
    bottomPadding: 56

    background: Rectangle {
        color: Palette.controlBackgroundColor
        radius: 32
    }

    label: Text {
        id: label
        x: control.leftPadding
        y: 56
        width: control.availableWidth

        text: control.title
        color: Palette.titleTextColor
        elide: Text.ElideRight

        font.family: "Roboto"
        font.pixelSize: 40
        font.weight: Font.Bold
    }
}
