small component patches + code cleanup

This commit is contained in:
SomeElse
2026-05-17 22:30:27 +00:00
parent 262fd8afa0
commit 6db876fc8a
21 changed files with 469 additions and 465 deletions

View File

@@ -7,6 +7,7 @@ Rectangle {
required property bool popupOpen
required property bool isTop
property bool animEnabled: true
property bool showShadow: false
width: parent.width
@@ -27,6 +28,18 @@ Rectangle {
opacity: popupOpen ? 1.0 : 0.0
Behavior on opacity { NumberAnimation { duration: 200 } }
Rectangle {
visible: card.showShadow && card.popupOpen
anchors.fill: parent
anchors.margins: -3
radius: card.radius + 3
color: "transparent"
border.color: Qt.rgba(0, 0, 0, 0.35)
border.width: 6
opacity: card.showShadow && card.popupOpen ? 0.6 : 0
Behavior on opacity { NumberAnimation { duration: 200 } }
}
default property alias _popupCardContent: _content.data
Item {