From 3745fbadf9ecbdca1cde85224f3809142de598b0 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sun, 19 Feb 2017 15:24:42 +0200 Subject: [PATCH] paint areas outside the maskArea --- containment/contents/ui/main.qml | 52 +++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/containment/contents/ui/main.qml b/containment/contents/ui/main.qml index caf2b8b4c..845746506 100644 --- a/containment/contents/ui/main.qml +++ b/containment/contents/ui/main.qml @@ -56,7 +56,7 @@ DragDrop.DropArea { property bool isHorizontal: plasmoid.formFactor === PlasmaCore.Types.Horizontal property bool isVertical: !isHorizontal property bool isHovered: latteApplet ? ((latteAppletHoveredIndex !== -1) && (layoutsContainer.hoveredIndex !== -1)) //|| wholeArea.containsMouse - : (layoutsContainer.hoveredIndex !== -1) //|| wholeArea.containsMouse + : (layoutsContainer.hoveredIndex !== -1) //|| wholeArea.containsMouse property bool normalState : false property bool onlyAddingStarup: true //is used for the initialization phase in startup where there arent removals, this variable provides a way to grow icon size //FIXME: possibly this is going to be the default behavior, this user choice @@ -1381,6 +1381,56 @@ DragDrop.DropArea { } } + ///Buffers to paint areas outside the maskArea/// + Loader{ + anchors.fill: parent + active: dock & !drawShadowsExternal && windowSystem.compositingActive + z: 1000 + + sourceComponent: Item{ + anchors.fill: parent + + Rectangle{ + x:0 + y:0 + width: root.width + height: dock.maskArea.y - 1 + + color: "red" + } + + Rectangle{ + x: 0 + y: dock.maskArea.y + width: dock.maskArea.x - 1 + height: dock.maskArea.height + + color: "red" + } + + Rectangle{ + x: dock.maskArea.x + dock.maskArea.width + 1 + y: dock.maskArea.y + width: dock.width - x + height: dock.maskArea.height + + color: "red" + } + + Rectangle{ + x: 0 + y: dock.maskArea.y + dock.maskArea.height + 1 + width: root.width + height: root.height - y + + color: "red" + } + } + } + + ///Buffers/// + + ///////////////END UI elements ///////////////BEGIN TIMER elements