17 lines
325 B
QML
17 lines
325 B
QML
import qs.config
|
|
import QtQuick
|
|
import QtQuick.Effects
|
|
|
|
RectangularShadow {
|
|
property int level
|
|
property real dp: [0, 1, 3, 6, 8, 12][level]
|
|
|
|
color: Qt.alpha(Config.colors.bg, 0.9)
|
|
blur: (dp * 5) ** 0.7
|
|
spread: -dp * 0.3 + (dp * 0.1) ** 2
|
|
offset.y: dp / 2
|
|
|
|
Behavior on dp {
|
|
Anim {}
|
|
}
|
|
}
|