feat: make StateLayer pick up per corner from parent

This commit is contained in:
2 * r + 2 * t 2026-06-06 00:02:07 +10:00
parent e3a7a0c8c7
commit 1bfc451a68

View file

@ -101,8 +101,14 @@ MouseArea {
anchors.fill: parent
opacity: root.stateOpacity
color: Colours.palette.m3onSurface
// Pick up radius from parent if it has one (parent can be anything with a radius property)
radius: root.parent?.radius ?? 0 // qmllint disable missing-property
// Pick up radius from parent if it has one (parent can be anything with radius props)
// qmllint disable missing-property
radius: root.parent?.radius ?? 0
topLeftRadius: root.parent?.topLeftRadius ?? radius ?? 0
topRightRadius: root.parent?.topRightRadius ?? radius ?? 0
bottomLeftRadius: root.parent?.bottomLeftRadius ?? radius ?? 0
bottomRightRadius: root.parent?.bottomRightRadius ?? radius ?? 0
// qmllint enable missing-property
}
Shape {