@ -242,22 +242,12 @@ BackgroundProperties{
id: shadowsSvgItem
width: root . isVertical ? background . thickness + totals.shadowsThickness : totals . visualLength
height: root . isVertical ? totals.visualLength : background . thickness + totals . shadowsThickness
enabledBorders: latteView && latteView . effects ? latteView.effects.enabledBorders : PlasmaCore . FrameSvg . NoBorder
imagePath: "widgets/panel-background"
prefix: "shadow"
opacity: hideShadow || ! root . useThemePanel || ( root . forceTransparentPanel && ! root . forcePanelForBusyBackground ) ? 0 : 1
visible: ( opacity == 0 ) ? false : true
opacity: {
if ( ( root . forceTransparentPanel && ! root . forcePanelForBusyBackground )
|| ! root . useThemePanel )
return 0 ;
else
return 1 ;
}
enabledBorders: latteView && latteView . effects && ! hideShadow ? latteView.effects.enabledBorders : PlasmaCore . FrameSvg . NoBorder
/ / ! s e t t r u e b y d e f a u l t i n o r d e r t o a v o i d c r a s h o n s t a r t u p b e c a u s e i m a g e P a t h i s s e t t o " "
readonly property bool themeHasShadow: themeExtended ? themeExtended.hasShadow : true
@ -287,6 +277,7 @@ BackgroundProperties{
enabled: ! LatteCore . WindowSystem . compositingActive
NumberAnimation { duration: 0 }
}
}
/ / ! L a y e r 2 : P r o v i d e v i s u a l s o l i d n e s s . P l a s m a t h e m e s b y d e s i g n m a y p r o v i d e a p a n e l - b a c k g r o u n d s v g t h a t i s n o t
/ / ! s o l i d . T h a t m e a n s t h a t u s e r c a n n o t g a i n f u l l s o l i d n e s s i n s u c h c a s e s . T h i s l a y e r i s r e s p o n s i b l e
@ -323,7 +314,7 @@ BackgroundProperties{
anchors.rightMargin: LatteCore . WindowSystem . compositingActive ? shadows.right : 0
anchors.topMargin: LatteCore . WindowSystem . compositingActive ? shadows.top : 0
anchors.bottomMargin: LatteCore . WindowSystem . compositingActive ? shadows.bottom : 0
anchors.fill: parent
anchors.fill: shadowsSvgItem
opacity: normalizedOpacity
@ -584,7 +575,7 @@ BackgroundProperties{
borderColor: "red"
roundness: overlayedBackground . roundness
} * /
}
/ / B E G I N s t a t e s
/ / u s e r s e t P a n e l P o s i t i o n s