fix #31,theme shadows used in normal state masking

pull/1/head
Michail Vourlakos 8 years ago
parent 600884dded
commit 20455dc547

@ -104,6 +104,13 @@ Item{
NumberAnimation { duration: 200 }
}
Binding {
target: root
property: "shadowsSize"
when: shadowsSvgItem && root.useThemePanel
value: root.isVertical ? shadowsSvgItem.margins.top : shadowsSvgItem.margins.bottom
}
Binding {
target: root
property: "realPanelSize"
@ -115,7 +122,6 @@ Item{
return shadowsSvgItem.panelSize + space;
}
}

@ -128,7 +128,7 @@ Item{
var tempLength = root.isHorizontal ? width : height;
var tempThickness = root.isHorizontal ? height : width;
var space = root.panelEdgeSpacing + 10;
var space = root.useThemePanel ? root.panelEdgeSpacing + 2*root.shadowsSize : 2;
if (normalState && !root.editMode) {
//console.log("entered normal state...");

@ -74,6 +74,8 @@ DragDrop.DropArea {
property int previousAllTasks: -1 //is used to forbit updateAutomaticIconSize when hovering
property int realSize: iconSize + iconMargin
property int realPanelSize
//this is set by the PanelBox
property int shadowsSize: 0
property int themePanelSize: plasmoid.configuration.panelSize
///FIXME: <delete both> I can't remember why this is needed, maybe for the anchorings!!! In order for the Double Layout to not mess the anchorings...
@ -88,7 +90,6 @@ DragDrop.DropArea {
readonly property string plasmoidName: "org.kde.latte.plasmoid"
property var iconsArray: [16, 22, 32, 48, 64, 96, 128, 256]
property var layoutManager: LayoutManager
@ -488,6 +489,10 @@ DragDrop.DropArea {
}
}
onShadowsSizeChanged: {
visibilityManager.updateMaskArea();
}
onToolBoxChanged: {
if (toolBox) {
toolBox.visible = false;

Loading…
Cancel
Save