Kylin/Fluent/qml/Shadow.qml
2024-08-31 04:13:21 +08:00

23 lines
587 B
QML

import QtQuick as Quick
import Fluent
Quick.Item {
property Quick.color color: Theme.dark ? "#000000" : "#999999"
property int elevation: 5
property int radius: 4
id:control
anchors.fill: parent
Quick.Repeater{
model: elevation
Quick.Rectangle{
anchors.fill: parent
color: "#00000000"
opacity: 0.01 * (elevation-index+1)
anchors.margins: -index
radius: control.radius+index
border.width: index
border.color: control.color
}
}
}