Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

chore(gates): bank the 2px spacing grid

esengine4b7475064759
diff --git a/desktop b/desktop
index 94ec028a7..2b67403e9 160000
--- a/desktop
+++ b/desktop
@@ -1 +1 @@
-Subproject commit 94ec028a70db6684556259bf9903ad83ecb66fe5
+Subproject commit 2b67403e94eaa02590f1a856fe775d657fcb9ea7
diff --git a/tools/baselines/theme-drift.json b/tools/baselines/theme-drift.json
index 43eae9d88..00dd66508 100644
--- a/tools/baselines/theme-drift.json
+++ b/tools/baselines/theme-drift.json
@@ -1,34 +1,31 @@
{
"spacing": {
- "agent.css": 179,
- "app.css": 32,
- "chrome.css": 26,
- "content.css": 56,
- "controllers.css": 29,
- "controls.css": 17,
- "dockview-theme.css": 3,
- "events.css": 19,
- "flipbook.css": 29,
- "health.css": 11,
- "history.css": 13,
- "inspector.css": 120,
- "launcher.css": 38,
- "lighting.css": 10,
- "log.css": 7,
- "material.css": 6,
- "menus.css": 89,
- "nodegraph.css": 22,
- "outliner.css": 8,
- "plugins.css": 34,
- "profiler.css": 27,
- "sequencer.css": 20,
- "settings.css": 40,
- "tilemap.css": 30,
- "tileset.css": 60,
+ "agent.css": 96,
+ "app.css": 14,
+ "chrome.css": 6,
+ "content.css": 31,
+ "controllers.css": 14,
+ "controls.css": 10,
+ "dockview-theme.css": 1,
+ "events.css": 9,
+ "flipbook.css": 9,
+ "health.css": 3,
+ "history.css": 7,
+ "inspector.css": 64,
+ "launcher.css": 4,
+ "lighting.css": 6,
+ "menus.css": 33,
+ "nodegraph.css": 10,
+ "outliner.css": 4,
+ "plugins.css": 12,
+ "profiler.css": 14,
+ "sequencer.css": 8,
+ "settings.css": 13,
+ "tilemap.css": 15,
+ "tileset.css": 22,
"transport.css": 2,
- "ui-palette.css": 4,
- "viewport.css": 21,
- "world.css": 12
+ "viewport.css": 13,
+ "world.css": 4
},
"colourLiterals": {
"app.css": 26,
diff --git a/tools/check-theme.mjs b/tools/check-theme.mjs
index 17011d0cf..958f4b21d 100644
--- a/tools/check-theme.mjs
+++ b/tools/check-theme.mjs
@@ -18,7 +18,7 @@
*
* Six are RATCHETS, because each is hundreds of declarations deep and a gate
* that reddens on all of them gets switched off. Banked, may fall, never rise:
- * spacing off the 4px grid; colour literals where a token belongs; raw
+ * spacing off the grid `--u` declares; colour literals where a token belongs; raw
* font-size; how many distinct icon sizes and stroke widths exist at all — 14
* and 16 today, including 1.8 / 1.85 / 1.9, which no one can tell apart; and
* hand-rolled `<button>` and native `title=` where the editor has a component.
@@ -188,7 +188,7 @@ for (const file of everyFile(SRC_DIR)) {
}
/**
- * Spacing that is not on the 4px grid, per file. A count rather than a line, so
+ * Spacing that is not on the grid, per file. A count rather than a line, so
* inserting a rule does not churn the baseline; per file, so a fix in one place
* cannot be spent on a regression in another.
*/