mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-06 13:38:28 -04:00
fix(frame): update hairline seam in notification joined surface
This commit is contained in:
@@ -807,22 +807,23 @@ PanelWindow {
|
|||||||
|
|
||||||
function _notifBodyScene() {
|
function _notifBodyScene() {
|
||||||
const isHoriz = SurfaceGeometry.isHorizontal(win._notifDescriptor.barSide);
|
const isHoriz = SurfaceGeometry.isHorizontal(win._notifDescriptor.barSide);
|
||||||
|
const body = win._notifBodyGeometry;
|
||||||
const start = win._notifStartUnderlapValue;
|
const start = win._notifStartUnderlapValue;
|
||||||
const end = win._notifEndUnderlapValue;
|
const end = win._notifEndUnderlapValue;
|
||||||
const side = win._notifSideUnderlapValue;
|
const side = win._notifSideUnderlapValue;
|
||||||
if (isHoriz) {
|
if (isHoriz) {
|
||||||
return {
|
return {
|
||||||
"x": _notifBodyBlurAnchor.x - start,
|
"x": body.x - start,
|
||||||
"y": _notifBodyBlurAnchor.y,
|
"y": body.y,
|
||||||
"width": _notifBodyBlurAnchor.width + start + end,
|
"width": body.width + start + end,
|
||||||
"height": _notifBodyBlurAnchor.height
|
"height": body.height
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
"x": _notifBodyBlurAnchor.x - (win._notifDescriptor.barSide === "left" ? side : 0),
|
"x": body.x - (win._notifDescriptor.barSide === "left" ? side : 0),
|
||||||
"y": _notifBodyBlurAnchor.y - start,
|
"y": body.y - start,
|
||||||
"width": _notifBodyBlurAnchor.width + side,
|
"width": body.width + side,
|
||||||
"height": _notifBodyBlurAnchor.height + start + end
|
"height": body.height + start + end
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -866,8 +867,9 @@ PanelWindow {
|
|||||||
"surfaceRadius": win._surfaceRadius
|
"surfaceRadius": win._surfaceRadius
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const n = win._notifBodyGeometry;
|
const n = win._notifBodyScene();
|
||||||
if (win._frameActive && win._notifDescriptor.visible && n.width > 0 && n.height > 0)
|
const nb = win._notifBodyGeometry;
|
||||||
|
if (win._frameActive && win._notifDescriptor.visible && nb.width > 0 && nb.height > 0)
|
||||||
arr.push({
|
arr.push({
|
||||||
"side": win._notifDescriptor.barSide,
|
"side": win._notifDescriptor.barSide,
|
||||||
"body": {"x": n.x, "y": n.y, "width": n.width, "height": n.height},
|
"body": {"x": n.x, "y": n.y, "width": n.width, "height": n.height},
|
||||||
|
|||||||
Reference in New Issue
Block a user