pragma ComponentBehavior: Bound import QtQuick import QtQuick.Controls import "../services" Button { id: control implicitHeight: 48 implicitWidth: Math.max(48, label.implicitWidth + leftPadding + rightPadding) leftPadding: 14 rightPadding: 14 topInset: 0 bottomInset: 0 hoverEnabled: true contentItem: Text { id: label text: control.text color: control.enabled ? (control.checked ? Theme.onPrimaryContainer : Theme.foreground) : Theme.outline font.pixelSize: 14 horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter elide: Text.ElideRight textFormat: Text.PlainText } background: Rectangle { radius: control.checked ? 16 : 24 color: control.checked ? Theme.primaryContainer : control.down ? Theme.secondaryContainer : control.hovered ? Theme.surfaceHigh : Theme.surfaceLow border.width: control.activeFocus || control.checked ? 2 : 0 border.color: Theme.primary } }