mirror of
https://github.com/belsabbagh/dotfiles.git
synced 2026-04-11 17:47:09 +00:00
19 lines
347 B
QML
19 lines
347 B
QML
import ".."
|
|
import qs.services
|
|
import QtQuick
|
|
import QtQuick.Effects
|
|
|
|
RectangularShadow {
|
|
property int level
|
|
property real dp: [0, 1, 3, 6, 8, 12][level]
|
|
|
|
color: Qt.alpha(Colours.palette.m3shadow, 0.7)
|
|
blur: (dp * 5) ** 0.7
|
|
spread: -dp * 0.3 + (dp * 0.1) ** 2
|
|
offset.y: dp / 2
|
|
|
|
Behavior on dp {
|
|
Anim {}
|
|
}
|
|
}
|