make plasmoid independent the ShadowExternal comp

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

@ -31,10 +31,15 @@ Item{
property int shadowSize: 7 property int shadowSize: 7
property real shadowOpacity: 1 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{ Item{
id: shadow id: shadow
width: plasmoid.formFactor === PlasmaCore.Types.Horizontal ? shadowRoot.width + 2*shadowSize : shadowSize width: isHorizontal ? shadowRoot.width + 2*shadowSize : shadowSize
height: plasmoid.formFactor === PlasmaCore.Types.Horizontal ? shadowSize: shadowRoot.height + 2*shadowSize height: isHorizontal ? shadowSize: shadowRoot.height + 2*shadowSize
opacity: shadowOpacity opacity: shadowOpacity
clip: true clip: true

Loading…
Cancel
Save