The card used its own padding and packed rows at the top while the block stretched it beside the tiles. It now uses tile metrics and grows its gaps, so each row meets a tile's toggle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
37 lines
947 B
QML
37 lines
947 B
QML
import QtQuick
|
|
import QtQuick.Layouts
|
|
import "../theme"
|
|
|
|
// Rounded Control Center module (macOS style); also embedded by Settings pages.
|
|
Rectangle {
|
|
id: root
|
|
default property alias controls: body.data
|
|
property string title
|
|
property bool heading: title !== ""
|
|
property int padding: 12
|
|
property real spacing: 10
|
|
implicitWidth: 360
|
|
implicitHeight: body.implicitHeight + padding * 2
|
|
radius: Math.max(12, Theme.radius * 0.75)
|
|
color: Theme.fill
|
|
border.width: 1
|
|
border.color: Theme.hairline
|
|
ColumnLayout {
|
|
id: body
|
|
anchors {
|
|
left: parent.left
|
|
right: parent.right
|
|
top: parent.top
|
|
margins: root.padding
|
|
}
|
|
spacing: root.spacing
|
|
Text {
|
|
visible: root.heading
|
|
text: root.title
|
|
color: Theme.text
|
|
font.pixelSize: 13
|
|
font.weight: Font.DemiBold
|
|
}
|
|
}
|
|
}
|