Files
z-bar-qt/Greeter/Components/Elevation.qml

21 lines
354 B
QML

import QtQuick
import QtQuick.Effects
import ZShell.Config
import qs.Services
RectangularShadow {
property real dp: [0, 1, 3, 6, 8, 12][level]
property int level
blur: (dp * 5) ** 0.7
color: Qt.alpha(Colors.palette.m3shadow, 0.7)
offset.y: dp / 2
spread: -dp * 0.3 + (dp * 0.1) ** 2
Behavior on dp {
Anim {
type: Anim.SlowEffects
}
}
}