mirror of
https://git.undefined-dev.fr/Blendman974/faceclaw.git
synced 2026-11-19 21:03:09 +00:00
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:
1 parent
e158452ba4
commit
a02b849200
115 files changed
+3600
-1583
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user