Commit b5651911 authored by Nate Graham's avatar Nate Graham
Browse files

applets/minimizeall: make active indicator line touch panel edges

BUG: 444810
FIXED-IN: 5.24.2
(cherry picked from commit 2555e8d0)
parent 95acde4c
Pipeline #138374 passed with stage
in 6 minutes and 16 seconds
......@@ -95,8 +95,27 @@ Item {
}
PlasmaCore.FrameSvgItem {
id: expandedItem
anchors.fill: parent
property var containerMargins: {
let item = tooltip;
while (item.parent) {
item = item.parent;
if (item.isAppletContainer) {
return item.getMargins;
}
}
return undefined;
}
anchors {
fill: parent
property bool returnAllMargins: true
// The above makes sure margin is returned even for side margins
// that would be otherwise turned off.
bottomMargin: containerMargins ? -containerMargins('bottom', returnAllMargins) : 0;
topMargin: containerMargins ? -containerMargins('top', returnAllMargins) : 0;
leftMargin: containerMargins ? -containerMargins('left', returnAllMargins) : 0;
rightMargin: containerMargins ? -containerMargins('right', returnAllMargins) : 0;
}
imagePath: "widgets/tabbar"
prefix: {
var prefix;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment