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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user