Borderless modes have different padding inside the builtin apps

Most of the builtin apps had some padding between the window edge and
their content, because they expect to be displayed with a line border on
their edge. We added a customization option to remove the border, so,
that padding is not always necessary. Make the layouts dynamically
adjust, to omit the padding when it isn't needed.
This commit is contained in:
James Babcock committed 2026-11-11 15:19:29 -08:00
1 parent e158452ba4
commit a02b849200
115 files changed
+3600 -1583

No files matched your search

+5 -4
View File
@@ -89,6 +89,7 @@ import {
screenWidth,
} from "./geometry";
import type { AppSwitcherPosition } from "../dashboard-settings";
import type { Viewport } from "../viewport";
/**
* The shell: owns the window registry, focus, screen on/off, and the shell
@@ -169,11 +170,11 @@ export type ShellWindow = {
*/
relayout?: () => void;
/**
* The viewport size the window is laid out at (it changes on relayout), so
* the controller can tell a window whose size fell behind the geometry from
* one whose surface merely moved.
* The viewport the window is laid out at (it changes on relayout), so the
* controller can tell a window whose size, or whose edges, fell behind the
* geometry from one whose surface merely moved.
*/
layoutSize?: () => { width: number; height: number };
layoutSize?: () => Viewport;
/**
* A touch from the phone's mirror at (x, y) in app-viewport coordinates.
* True if the window acted on it; otherwise the controller sends a select.