hefty: bar: popup choreography

This commit is contained in:
end-4
2026-03-02 21:55:18 +01:00
parent 521f3cab6d
commit ae0c9f4731
5 changed files with 132 additions and 11 deletions
@@ -41,6 +41,8 @@ HBarWidgetContainer {
backgroundWidth: root.backgroundWidth
backgroundHeight: root.backgroundHeight
popupContentWidth: popupContent.implicitWidth
popupContentHeight: popupContent.implicitHeight
startRadius: root.getBackgroundRadius(root.startSide)
endRadius: root.getBackgroundRadius(root.endSide)
}
@@ -57,6 +59,7 @@ HBarWidgetContainer {
contentImplicitWidth: vertical ? verticalContent.implicitWidth : horizontalContent.implicitWidth
contentImplicitHeight: vertical ? verticalContent.implicitHeight : horizontalContent.implicitHeight
// When horizontal
W.FadeLoader {
id: horizontalContent
anchors.fill: parent
@@ -97,9 +100,40 @@ HBarWidgetContainer {
}
}
// When vertical
W.FadeLoader {
id: verticalContent
anchors.fill: parent
}
// Popup content
W.ChoreographerGrid {
id: popupContent
anchors {
top: horizontalContent.bottom
topMargin: bgShape.popupContentOffsetY
left: horizontalContent.left
leftMargin: bgShape.popupContentOffsetX
}
shown: root.showPopup
W.FlyFadeEnterChoreographable {
W.StyledText {
text: "Kalender"
font.pixelSize: 25
}
}
W.FlyFadeEnterChoreographable {
W.StyledText {
text: "Lorem ipsum okakumalum tung\ntung tung tung"
}
}
W.FlyFadeEnterChoreographable {
W.StyledText {
text: "BAJLANDO\nUUOOOUUUOOOUUOOUOU"
}
}
}
}
}