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.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
feat(gates): the asset ramp answers to the panel's saturation ceiling
esengine72b0f57d3d75
diff --git a/desktop b/desktopindex 8484c1c37..237fd0447 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit 8484c1c37debf481ed2e8cc6248965b9ecd70d2c+Subproject commit 237fd04475c87fefb99d8d35763219dd73da23c0diff --git a/tools/baselines/theme-drift.json b/tools/baselines/theme-drift.jsonindex 9c530afb4..d35f441c9 100644--- a/tools/baselines/theme-drift.json+++ b/tools/baselines/theme-drift.json@@ -70,7 +70,6 @@"panels/ScriptGraphEditor.tsx": 6,"panels/SpinePreviewPane.tsx": 4,"panels/Viewport.tsx": 2,- "project/assetTypes.ts": 33,"settings/editorSettings.ts": 10,"tileset/TilesetCommands.ts": 8,"tools/tileMath.ts": 6diff --git a/tools/check-theme.mjs b/tools/check-theme.mjsindex ff713ee65..44ad6fcca 100644--- a/tools/check-theme.mjs+++ b/tools/check-theme.mjs@@ -100,10 +100,12 @@ const saturation = (hex) => {*/const PANEL_CEILING = 80;-const content = [...css.matchAll(/^\s*(--cat-[a-z-]+):\s*(#[0-9a-fA-F]{6})\b/gm)]+// `--asset-*` labels content in the same place and by the same rule — a content+// browser icon and a component header bar sit on the same panel.+const content = [...css.matchAll(/^\s*(--(?:cat|asset)-[a-z-]+):\s*(#[0-9a-fA-F]{6})\b/gm)].map(([, name, hex]) => ({ name, hex, sat: saturation(hex) }));-if (content.length === 0) problems.push(`${TOKENS}: no --cat-* tokens found — the content ramp cannot be read`);+if (content.length === 0) problems.push(`${TOKENS}: no --cat-*/--asset-* tokens found — the content ramp cannot be read`);for (const { name, hex, sat } of content) {if (sat >= PANEL_CEILING) {problems.push(`${TOKENS}: ${name} (${hex}) is ${sat}% saturated — a panel label stays under ${PANEL_CEILING}%, that is viewport brightness`);