make plasmoid independent the ShadowExternal comp

pull/5/head
Michail Vourlakos 6 years ago
parent 80fbb074b4
commit 7ed22d6b04

@ -31,10 +31,15 @@ Item{
property int shadowSize: 7
property real shadowOpacity: 1
readonly property bool isHorizontal : (shadowDirection !== PlasmaCore.Types.LeftEdge) && (shadowDirection !== PlasmaCore.Types.RightEdge)
readonly property int implicitWidth: shadow.width
readonly property int implicitHeight: shadow.height
Item{
id: shadow
width: plasmoid.formFactor === PlasmaCore.Types.Horizontal ? shadowRoot.width + 2*shadowSize : shadowSize
height: plasmoid.formFactor === PlasmaCore.Types.Horizontal ? shadowSize: shadowRoot.height + 2*shadowSize
width: isHorizontal ? shadowRoot.width + 2*shadowSize : shadowSize
height: isHorizontal ? shadowSize: shadowRoot.height + 2*shadowSize
opacity: shadowOpacity
clip: true

Loading…
Cancel
Save