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

+7 -1
View File
@@ -281,7 +281,13 @@ function writePng(name, image) {
}
// --- the glasses: 640x480, the G2 lens ------------------------------------
const LENS = { width: 640, height: 480 };
// As a window with a border line along every edge: the padding the shell
// suggests there (app/ui/viewport.ts BORDER_EDGE_PADDING).
const EDGE_PADDING = 8;
const LENS = {
width: 640, height: 480,
padding: { top: EDGE_PADDING, right: EDGE_PADDING, bottom: EDGE_PADDING, left: EDGE_PADDING },
};
GLANCE_PAGES.forEach((page, index) => {
const name =
page.kind === "overview" ? "overview" : page.kind === "sleep" ? "sleep" : page.metric;