**shadows** update
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import QtQuick
|
||||
import QtQuick.Effects
|
||||
|
||||
Item {
|
||||
id: root
|
||||
property real radius
|
||||
Rectangle {
|
||||
id: shadowRect
|
||||
anchors.fill: root
|
||||
radius: root.radius
|
||||
layer.enabled: true
|
||||
color: "black"
|
||||
visible: false
|
||||
}
|
||||
|
||||
MultiEffect {
|
||||
id: effects
|
||||
source: shadowRect
|
||||
anchors.fill: shadowRect
|
||||
shadowBlur: 2.0
|
||||
shadowEnabled: true
|
||||
shadowOpacity: 1
|
||||
shadowColor: "black"
|
||||
maskSource: shadowRect
|
||||
maskEnabled: true
|
||||
maskInverted: true
|
||||
autoPaddingEnabled: true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user