hefty: bar: refactor content hover effect

This commit is contained in:
end-4
2026-02-22 00:12:26 +01:00
parent 455252dff1
commit 521f3cab6d
3 changed files with 89 additions and 73 deletions
@@ -16,15 +16,16 @@ import "../../../common/widgets/shapes/geometry/offset.js" as Offset
Shapes.ShapeCanvas {
id: bgShape
property bool atBottom: root.atBottom
property bool showPopup: root.showPopup
property real backgroundWidth: containerRoot.backgroundWidth
property real backgroundHeight: containerRoot.backgroundHeight
required property bool vertical
required property bool atBottom
required property bool showPopup
required property real backgroundWidth
required property real backgroundHeight
property real popupWidth: 400
property real popupHeight: 500
property real startRadius: containerRoot.getBackgroundRadius(containerRoot.startSide)
property real endRadius: containerRoot.getBackgroundRadius(containerRoot.endSide)
property real baseMargin: (parent.height - containerShape.height) / 2
required property real startRadius
required property real endRadius
property real baseMargin: (parent.height - containerShape.height) / 2 // TODO vertical
property alias containerShape: containerShape
property alias popupShape: popupShape