import QtQuick import "../theme" Rectangle { id: root property real surfaceOpacity: Theme.glassOpacity radius: Theme.radius color: Qt.alpha(Theme.surface, surfaceOpacity) border.width: 1 border.color: Theme.border Rectangle { z: -1 anchors.fill: parent anchors.topMargin: 4 anchors.bottomMargin: -4 radius: root.radius color: Theme.shadow visible: Theme.shadows } Rectangle { anchors.fill: parent radius: root.radius visible: Theme.highlights gradient: Gradient { GradientStop { position: 0 color: Qt.alpha(Theme.text, 0.035) } GradientStop { position: 0.55 color: Theme.transparent } GradientStop { position: 1 color: Qt.alpha(Theme.shadow, 0.03) } } } Rectangle { anchors.top: parent.top anchors.topMargin: 1 anchors.horizontalCenter: parent.horizontalCenter width: Math.max(0, parent.width - root.radius * 2) height: 1 color: Theme.border visible: Theme.highlights } }