fixes for showBackOnlyOnMaximized design

--improve applets shadows, now the shadows used
are using the backgroundColor when a transparent
panel is forced
--identify better when shadows should be drawn
pull/1/head
Michail Vourlakos 8 years ago
parent 9d55a65bf5
commit 49d8b145d2

@ -792,8 +792,8 @@ void DockView::setBehaveAsPlasmaPanel(bool behavior)
PanelShadows::self()->addWindow(this, enabledBorders());
} else {
PanelShadows::self()->removeWindow(this);
m_enabledBorders = Plasma::FrameSvg::AllBorders;
emit enabledBordersChanged();
// m_enabledBorders = Plasma::FrameSvg::AllBorders;
// emit enabledBordersChanged();
}
updateEffects();
@ -817,8 +817,8 @@ void DockView::setDrawShadows(bool draw)
PanelShadows::self()->addWindow(this, enabledBorders());
} else {
PanelShadows::self()->removeWindow(this);
m_enabledBorders = Plasma::FrameSvg::AllBorders;
emit enabledBordersChanged();
//m_enabledBorders = Plasma::FrameSvg::AllBorders;
//emit enabledBordersChanged();
}
emit drawShadowsChanged();

@ -835,13 +835,13 @@ Item {
sourceComponent: DropShadow{
anchors.fill: parent
color: forcedShadow ? "#ff040404" : "#ff080808"
color: forcedShadow ? theme.backgroundColor : "#ff080808"
samples: 2 * radius
source: container.fakeIconItem ? wrapperContainer : container.applet
radius: shadowSize
verticalOffset: forcedShadow ? 1 : 2
property int shadowSize : forcedShadow? 7 : Math.ceil(root.iconSize / 12)
property int shadowSize : forcedShadow? 8 : Math.ceil(root.iconSize / 12)
property bool forcedShadow: root.forceTransparentPanel && applet.pluginName !== root.plasmoidName ? true : false
}

@ -120,7 +120,8 @@ DragDrop.DropArea {
property int panelEdgeSpacing: iconSize / 3
property int panelTransparency: plasmoid.configuration.panelTransparency
property bool panelShadowsActive: plasmoid.configuration.panelShadows && !root.forceTransparentPanel
property bool panelShadowsActive: (plasmoid.configuration.panelShadows && !root.backgroundOnlyOnMaximized)
|| (plasmoid.configuration.panelShadows && root.backgroundOnlyOnMaximized && windowsModel.hasMaximizedWindow)
property int totalPanelEdgeSpacing: 0 //this is set by PanelBox
//FIXME: this is not needed any more probably

Loading…
Cancel
Save