1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-01 19:18:28 -04:00

frame: consolidate and simplify inset logic

This commit is contained in:
bbedward
2026-07-27 13:10:36 -04:00
parent 8594a414ec
commit 73da4879f6
8 changed files with 38 additions and 23 deletions
+2 -4
View File
@@ -584,11 +584,9 @@ Item {
}
function _frameEdgeInset(side) {
if (!root.frameOwnsConnectedChrome || !root.screen)
if (!root.frameOwnsConnectedChrome)
return 0;
const edges = SettingsData.getActiveBarEdgesForScreen(root.screen);
const raw = edges.includes(side) ? SettingsData.frameBarSize : SettingsData.frameThickness;
return Math.max(0, raw);
return Math.max(0, SettingsData.frameEdgeReservation(root.screen, side));
}
function _edgeGapFor(side, popupGap) {