feat: make StateLayer pick up per corner from parent
This commit is contained in:
parent
e3a7a0c8c7
commit
1bfc451a68
1 changed files with 8 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue