From 1bfc451a68dc1c4041c79079c77ad9cec430ac1a Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 6 Jun 2026 00:02:07 +1000 Subject: [PATCH] feat: make StateLayer pick up per corner from parent --- components/StateLayer.qml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/components/StateLayer.qml b/components/StateLayer.qml index fe7a2b95..d30ab731 100644 --- a/components/StateLayer.qml +++ b/components/StateLayer.qml @@ -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 {