import QtQuick import "../theme" GlassPanel { id: root surfaceOpacity: Theme.panelOpacity property bool opened: false visible: opened || opacity > 0.01 opacity: opened ? 1 : 0 scale: opened ? 1 : 1 - 0.06 * Theme.intensity transform: Translate { y: root.opened ? 0 : -6 * Theme.intensity Behavior on y { NumberAnimation { duration: Theme.duration easing.type: Easing.OutCubic } } } Behavior on opacity { NumberAnimation { duration: Theme.duration } } Behavior on scale { NumberAnimation { duration: Theme.duration easing.type: Easing.OutCubic } } }