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
refactor(editor): empty-line + chip primitives; themed delete confirm
yhh7d14d69e6a6f
diff --git a/desktop/src/components/AddComponentMenu.tsx b/desktop/src/components/AddComponentMenu.tsxindex 7ebeb3f50..0887d054c 100644--- a/desktop/src/components/AddComponentMenu.tsx+++ b/desktop/src/components/AddComponentMenu.tsx@@ -138,7 +138,7 @@ export function AddComponentMenu({<div className="ac-body">{flat.length === 0 ? (- <div className="ac-empty">+ <div className="empty-line">{entries.length === 0 ? 'All components added' : 'No matching components'}</div>) : (diff --git a/desktop/src/components/ConfirmDialog.tsx b/desktop/src/components/ConfirmDialog.tsxnew file mode 100644index 000000000..2beb2152a--- /dev/null+++ b/desktop/src/components/ConfirmDialog.tsx@@ -0,0 +1,56 @@+// SPDX-License-Identifier: Apache-2.0+// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team+/**+ * @file ConfirmDialog.tsx — a themed yes/no confirm built on Modal, replacing+ * native window.confirm (blocking, unthemed, no keyboard contract). The+ * confirm button takes focus so Enter confirms; Escape/backdrop cancel+ * via Modal. `danger` puts the error fill on the confirm action.+ */+import { useEffect, useRef, type ReactNode } from 'react';+import { Modal } from './Modal';++export function ConfirmDialog({+ title,+ body,+ confirmLabel = 'OK',+ danger,+ onConfirm,+ onCancel,+}: {+ title: string;+ body: ReactNode;+ confirmLabel?: string;+ /** Destructive action — the confirm button wears the error fill. */+ danger?: boolean;+ onConfirm: () => void;+ onCancel: () => void;+}) {+ // Runs after Modal's dialogFocus (child effects first), so this wins.+ const btn = useRef<HTMLButtonElement>(null);+ useEffect(() => btn.current?.focus(), []);++ return (+ <Modal+ title={title}+ onClose={onCancel}+ width={420}+ footer={+ <>+ <button type="button" className="btn-soft" onClick={onCancel}>+ Cancel+ </button>+ <button+ ref={btn}+ type="button"+ className={`btn-soft ${danger ? 'is-danger' : 'is-primary'}`}+ onClick={onConfirm}+ >+ {confirmLabel}+ </button>+ </>+ }+ >+ <div className="confirm-body">{body}</div>+ </Modal>+ );+}diff --git a/desktop/src/components/CreatePopover.tsx b/desktop/src/components/CreatePopover.tsxindex 23f7f4999..2d7080e64 100644--- a/desktop/src/components/CreatePopover.tsx+++ b/desktop/src/components/CreatePopover.tsx@@ -106,7 +106,7 @@ export function CreatePopover({<div className="ac-body">{results.length === 0 ? (- <div className="ac-empty">No matching templates</div>+ <div className="empty-line">No matching templates</div>) : (groups.map((g) => (<div key={g.category}>diff --git a/desktop/src/components/SettingsDialog.tsx b/desktop/src/components/SettingsDialog.tsxindex 7c1c23881..d15ba49a1 100644--- a/desktop/src/components/SettingsDialog.tsx+++ b/desktop/src/components/SettingsDialog.tsx@@ -414,7 +414,7 @@ export function SettingsDialog() {<div className="set-content">{content.length === 0 ? (- <div className="set-empty">No settings match “{query}”.</div>+ <div className="empty-line">No settings match “{query}”.</div>) : (content.map((g) => <Group key={g.label} label={g.label} settings={g.settings} />))}diff --git a/desktop/src/components/TilemapPickerDialog.tsx b/desktop/src/components/TilemapPickerDialog.tsxindex df8541f8c..8fe92626b 100644--- a/desktop/src/components/TilemapPickerDialog.tsx+++ b/desktop/src/components/TilemapPickerDialog.tsx@@ -35,7 +35,7 @@ export function TilemapPickerDialog() {<p className="tmpick__hint">Pick a tileset to use as the map's palette</p><SearchField className="tmpick__search" autoFocus placeholder="Search tilesets…" value={q} onChange={setQ} />{shown.length === 0 ? (- <div className="tmpick__empty">No matching tilesets</div>+ <div className="empty-line">No matching tilesets</div>) : (<div className="tmpick__list">{shown.map((t) => (diff --git a/desktop/src/layout/SubsystemIndicator.tsx b/desktop/src/layout/SubsystemIndicator.tsxindex 77fe1e893..03817e7cc 100644--- a/desktop/src/layout/SubsystemIndicator.tsx+++ b/desktop/src/layout/SubsystemIndicator.tsx@@ -84,7 +84,7 @@ export function SubsystemIndicator() {<div className="mods-pop" role="menu"><h4>Engine Modules{inPlay ? ' · Play' : ''}</h4>{subsystems.length === 0 ? (- <div className="mods-empty">Engine not booted</div>+ <div className="empty-line empty-line--sm">Engine not booted</div>) : (subsystems.map((s) => {const p = present(s);diff --git a/desktop/src/panels/ContentBrowser.tsx b/desktop/src/panels/ContentBrowser.tsxindex 9db6d9979..a2dd36389 100644--- a/desktop/src/panels/ContentBrowser.tsx+++ b/desktop/src/panels/ContentBrowser.tsx@@ -3,6 +3,7 @@import { Fragment, useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from 'react';import { ChevronRight, LayoutGrid, List, Import, FolderOpen, FolderPlus, ArrowLeft, ArrowRight, ArrowUp, ArrowDownUp } from 'lucide-react';import { AssetIcon, assetTint } from '@/components/icons';+import { ConfirmDialog } from '@/components/ConfirmDialog';import { SearchField } from '@/components/SearchField';import { ContextMenu, type MenuItem } from '@/components/Menu';import { useTooltip } from '@/components/Tooltip';@@ -412,8 +413,10 @@ export function ContentBrowser() {}};+ // Delete = themed confirm (Enter confirms, Esc cancels) → trash. The dialog+ // body warns when scenes/prefabs reference the asset (those refs would break).+ const [confirmDel, setConfirmDel] = useState<{ path: string; name: string; warn: string } | null>(null);const remove = async (path: string, name: string) => {- // Warn if scenes/prefabs reference this asset — deleting breaks those refs.let warn = '';try {const scan = await window.estella.project.scanAssets();@@ -423,13 +426,18 @@ export function ContentBrowser() {warn = `\n\nIt is referenced by ${refs.length} asset${refs.length > 1 ? 's' : ''} (${names}${refs.length > 3 ? ', …' : ''}); those references will break.`;}} catch {- // Best-effort: if the scan fails, fall through to the plain confirm.+ // Best-effort: if the scan fails, confirm without the reference warning.}- if (!window.confirm(`Delete “${name}”? It will be moved to the trash.${warn}`)) return;+ setConfirmDel({ path, name, warn });+ };+ const doRemove = async () => {+ const target = confirmDel;+ setConfirmDel(null);+ if (!target) return;try {- await window.estella.fs.trash(path);+ await window.estella.fs.trash(target.path);refreshFs();- if (selected === path) selectAsset(null);+ if (selected === target.path) selectAsset(null);} catch (e) {Toasts.push(`Delete failed: ${errMsg(e)}`, 'error');}@@ -978,7 +986,7 @@ export function ContentBrowser() {);})}{!listLoading && items.length === 0 && (- <div className="cb-empty" style={{ gridColumn: '1 / -1' }}>+ <div className="empty-line cb-empty" style={{ gridColumn: '1 / -1' }}>{q ? 'No assets match.' : 'Empty folder — drag files here or use Import.'}</div>)}@@ -1028,7 +1036,7 @@ export function ContentBrowser() {);})}{!listLoading && items.length === 0 && (- <div className="cb-empty">{q ? 'No assets match.' : 'Empty folder — drag files here or use Import.'}</div>+ <div className="empty-line cb-empty">{q ? 'No assets match.' : 'Empty folder — drag files here or use Import.'}</div>)}</div>)}@@ -1056,6 +1064,16 @@ export function ContentBrowser() {{!ctx && tip.card}{ctx && <ContextMenu x={ctx.x} y={ctx.y} items={ctxItems} onClose={() => setCtx(null)} />}+ {confirmDel && (+ <ConfirmDialog+ title="Delete asset"+ danger+ confirmLabel="Delete"+ body={`Delete “${confirmDel.name}”? It will be moved to the trash.${confirmDel.warn}`}+ onConfirm={() => void doRemove()}+ onCancel={() => setConfirmDel(null)}+ />+ )}</div>);}diff --git a/desktop/src/panels/Details.tsx b/desktop/src/panels/Details.tsxindex 8c230427a..3f682ca39 100644--- a/desktop/src/panels/Details.tsx+++ b/desktop/src/panels/Details.tsx@@ -323,7 +323,7 @@ export function EnumControl({{o.value === value && !mixed && <Check size={12} strokeWidth={2.4} />}</button>))}- {filtered.length === 0 && <div className="dd-empty">No match</div>}+ {filtered.length === 0 && <div className="empty-line empty-line--sm">No match</div>}</div></Popover>)}@@ -1027,7 +1027,7 @@ export function AssetControl({<span className="an">{a.name}</span></button>))}- {assets.length === 0 && <div className="dd-empty">No matching assets</div>}+ {assets.length === 0 && <div className="empty-line empty-line--sm">No matching assets</div>}</div></Popover>)}@@ -1658,7 +1658,7 @@ function InputMapAssetInspector({ path }: { path: string }) {};}, [path]);- if (!map) return <div className="insp"><div className="filter-empty">Loading…</div></div>;+ if (!map) return <div className="insp"><div className="empty-line">Loading…</div></div>;const commit = (next: InputMapAsset) => {setMap(next);@@ -1677,7 +1677,7 @@ function InputMapAssetInspector({ path }: { path: string }) {<span>Input Actions</span><button type="button" className="im-add" onClick={() => commit(imap.addAction(map, uniqueName()))}>+ Action</button></div>- {actions.length === 0 && <div className="filter-empty">No actions yet — add one to bind keys / buttons / axes.</div>}+ {actions.length === 0 && <div className="empty-line">No actions yet — add one to bind keys / buttons / axes.</div>}{actions.map(([name, def]) => (<div className="im-action" key={name}><div className="im-action-head">@@ -2149,7 +2149,7 @@ function EditorDetails() {/>))}{query && visible.length === 0 && (- <div className="filter-empty">No components match “{query}”.</div>+ <div className="empty-line">No components match “{query}”.</div>)}</div>diff --git a/desktop/src/panels/OutputLog.tsx b/desktop/src/panels/OutputLog.tsxindex 9d7693ae8..bcc38967f 100644--- a/desktop/src/panels/OutputLog.tsx+++ b/desktop/src/panels/OutputLog.tsx@@ -212,7 +212,7 @@ export function OutputLog() {const Chip = ({ id, label, count }: { id: Filter; label: string; count?: number }) => (<buttontype="button"- className={`log-chip${id !== 'all' ? ` ${id}` : ''}${filter === id ? ' on' : ''}`}+ className={`chip log-chip${id !== 'all' ? ` ${id}` : ''}${filter === id ? ' on' : ''}`}onClick={() => setFilter(id)}>{id !== 'all' && <i className="d" />}@@ -267,7 +267,7 @@ export function OutputLog() {</div>))}{visible.length === 0 && (- <div className="log-empty">+ <div className="empty-line">{entries.length === 0 ? 'No log output yet — engine and script logs appear here.' : 'No entries match the filter.'}</div>)}diff --git a/desktop/src/panels/ProfilerPanel.tsx b/desktop/src/panels/ProfilerPanel.tsxindex da68ebbfe..69b424bec 100644--- a/desktop/src/panels/ProfilerPanel.tsx+++ b/desktop/src/panels/ProfilerPanel.tsx@@ -264,7 +264,7 @@ export function ProfilerPanel() {<buttonkey={g.id}type="button"- className={`prof-chip${hidden.has(g.id) ? '' : ' on'}`}+ className={`chip prof-chip${hidden.has(g.id) ? '' : ' on'}`}onClick={() => toggleGroup(g.id)}>{g.label}diff --git a/desktop/src/panels/Sequencer.tsx b/desktop/src/panels/Sequencer.tsxindex e485ee1db..eb86103fa 100644--- a/desktop/src/panels/Sequencer.tsx+++ b/desktop/src/panels/Sequencer.tsx@@ -512,7 +512,7 @@ function SequencerBody() {<div className="seq-picker" style={{ left: pickerOpen.x, top: pickerOpen.y }}><div className="seq-interp__title">Add track</div>{addTrackItems.length === 0 ? (- <div className="seq-picker__empty">No animatable properties to add</div>+ <div className="empty-line empty-line--sm">No animatable properties to add</div>) : (addTrackItems.map((it) => (<buttondiff --git a/desktop/src/panels/TilemapPainter.tsx b/desktop/src/panels/TilemapPainter.tsxindex 93a828901..064fbdbdc 100644--- a/desktop/src/panels/TilemapPainter.tsx+++ b/desktop/src/panels/TilemapPainter.tsx@@ -399,7 +399,7 @@ export function TilemapPainter() {{addOpen && (<div className="tp-tsmenu">{addable.length === 0 ? (- <div className="tp-tsmenu-empty">No tilesets to add</div>+ <div className="empty-line empty-line--sm">No tilesets to add</div>) : (addable.map((a) => (<button key={a.ref} type="button" className="tp-tsmenu-item" onClick={() => addTileset(a.ref)}>diff --git a/desktop/src/theme/app.css b/desktop/src/theme/app.cssindex 63584e637..21bd35f82 100644--- a/desktop/src/theme/app.css+++ b/desktop/src/theme/app.css@@ -125,6 +125,16 @@background: var(--star-hi);border-color: var(--star-hi);}+.btn-soft.is-danger {+ color: var(--on-accent);+ background: var(--error);+ border-color: var(--error);+}+.btn-soft.is-danger:hover:not(:disabled) {+ color: var(--on-accent);+ background: var(--error-hi);+ border-color: var(--error-hi);+}.empty {flex: 1;diff --git a/desktop/src/theme/chrome.css b/desktop/src/theme/chrome.cssindex e67faeb9c..035407b96 100644--- a/desktop/src/theme/chrome.css+++ b/desktop/src/theme/chrome.css@@ -208,7 +208,6 @@.mods-row .ms.run { color: var(--run-hi); }.mods-row .ms.err { color: var(--error); }.mods-err { padding: 0 6px 4px 22px; color: var(--error); font-size: var(--fs-2xs); font-family: var(--mono); word-break: break-word; }-.mods-empty { padding: 12px 8px; color: var(--text-mute); font-size: var(--fs-xs); text-align: center; }/* ── Activity bar (far-left icon rail) ── */.activity {diff --git a/desktop/src/theme/content.css b/desktop/src/theme/content.cssindex 12552222a..3d2e4af45 100644--- a/desktop/src/theme/content.css+++ b/desktop/src/theme/content.css@@ -65,10 +65,10 @@.cb-tip-row .v.mono { font-family: var(--mono); font-size: var(--fs-2xs); }.cb-chips { display: flex; align-items: center; gap: 5px; padding: 7px 10px; border-bottom: 1px solid var(--border); flex-shrink: 0; overflow-x: auto; }-.cb-chips .chip { height: 24px; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; font-size: var(--fs-xs); color: var(--text-dim); background: var(--srf-3); border: 1px solid var(--border-line); border-radius: var(--r-pill); white-space: nowrap; flex-shrink: 0; transition: all var(--t-fast); }-.cb-chips .chip:hover { color: var(--text); border-color: var(--text-mute); }-.cb-chips .chip.on { color: var(--on-accent); background: var(--acc); border-color: var(--acc); }-.cb-chips .chip .d { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }+/* shared .chip; taller row + a raised idle face, square type-color swatch */+.cb-chips .chip { height: 24px; background: var(--srf-3); }+.cb-chips .chip.on { background: var(--star-dim); }+.cb-chips .chip .d { border-radius: 2px; }.cb-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; }/* grid view */@@ -95,8 +95,8 @@.lr .ln { display: flex; align-items: center; gap: 8px; min-width: 0; }.lr .ln .t { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.lr .c { font-size: var(--fs-xs); color: var(--text-dim); font-family: var(--mono); }-.cb-empty { padding: 50px; text-align: center; color: var(--text-mute); }-.cb-empty .ei { width: 44px; height: 44px; margin: 0 auto 10px; display: grid; place-items: center; border: 1px dashed var(--border-line); border-radius: var(--r-lg); }+/* shared .empty-line, with room to breathe in the large grid area */+.cb-empty { padding: 50px 12px; }/* ── Drag & drop affordances ── the outliner's drop language (accent-soft fill +1px accent ring) on every folder drop target; a soft inset ring on the scrolldiff --git a/desktop/src/theme/controls.css b/desktop/src/theme/controls.cssindex 9fc3f04ad..61f805a3b 100644--- a/desktop/src/theme/controls.css+++ b/desktop/src/theme/controls.css@@ -86,6 +86,40 @@}.search--flush:focus-within { border-color: var(--border); box-shadow: none; }+/* — Inline empty line ("no results" in lists, popovers, grids). The full+ panel empty-state (icon + title + hint) is `.empty` in app.css. — */+.empty-line {+ padding: 16px 12px;+ text-align: center;+ color: var(--text-mute);+ font-size: var(--fs-sm);+ font-family: var(--font-ui); /* holds up inside mono contexts (log body) */+}+.empty-line--sm { padding: 8px; font-size: var(--fs-xs); }++/* — Filter chip (toggleable pill: content-browser types, log severities,+ profiler stat groups). One quiet base, selected = accent tint; families+ override only identity color / sizing. — */+.chip {+ display: inline-flex;+ align-items: center;+ gap: 5px;+ height: 22px;+ padding: 0 10px;+ font-size: var(--fs-xs);+ color: var(--text-dim);+ border: 1px solid var(--border-line);+ border-radius: var(--r-pill);+ white-space: nowrap;+ flex-shrink: 0;+ cursor: pointer;+ transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);+}+.chip:hover { color: var(--text); border-color: var(--text-mute); }+.chip:active { background: var(--srf-5); }+.chip.on { color: var(--star-hi); background: var(--star-dim); border-color: var(--star-line); }+.chip .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }+/* — Pill toggle switch (inspector booleans, settings; `.mixed` = a multi-selectvalue the selection disagrees on) — */.toggle { width: 30px; height: 17px; border-radius: var(--r-pill); background: var(--srf-5); position: relative; cursor: pointer; flex-shrink: 0; transition: background var(--t-fast); }diff --git a/desktop/src/theme/inspector.css b/desktop/src/theme/inspector.cssindex 1a9ca97ff..0791a79af 100644--- a/desktop/src/theme/inspector.css+++ b/desktop/src/theme/inspector.css@@ -172,7 +172,6 @@.dd-opt > svg { color: var(--acc-hi); flex-shrink: 0; }.dd-opt .fchk { width: 13px; height: 13px; border: 1px solid var(--border-line); border-radius: var(--r-xs); display: grid; place-items: center; color: transparent; flex-shrink: 0; }.dd-opt .fchk.on { background: var(--acc); border-color: var(--acc); color: var(--on-accent); }-.dd-empty { padding: 9px; text-align: center; color: var(--text-mute); font-size: var(--fs-xs); }.dd-allnone { display: flex; gap: 4px; padding: 2px 3px 5px; border-bottom: 1px solid var(--border); margin-bottom: 3px; }.dd-allnone button { flex: 1; height: 22px; background: var(--srf-4); border: 1px solid var(--border-line); border-radius: var(--r-xs); color: var(--text-dim); font-size: var(--fs-2xs); cursor: pointer; }.dd-allnone button:hover { background: var(--srf-5); color: var(--text); }@@ -185,7 +184,7 @@.asset-opt .th { width: 42px; height: 42px; border-radius: var(--r-xs); background: var(--inset); display: grid; place-items: center; color: var(--text-mute); overflow: hidden; flex-shrink: 0; }.asset-opt .th img { width: 100%; height: 100%; object-fit: contain; }.asset-opt .an { width: 100%; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }-.asset-grid .dd-empty { grid-column: 1 / -1; }+.asset-grid .empty-line { grid-column: 1 / -1; }/* multi-select: a value the selection disagrees on (shows a "—" placeholder).The pill toggle itself (incl. .mixed) is the shared primitive in controls.css. */@@ -216,7 +215,6 @@.insp-empty .ei { width: 46px; height: 46px; display: grid; place-items: center; color: var(--text-mute); border: 1px dashed var(--border-line); border-radius: var(--r-lg); }.insp-empty .et { font-size: var(--fs-md); color: var(--text-dim); font-weight: 600; }.insp-empty .es { font-size: var(--fs-sm); line-height: 1.5; }-.filter-empty { padding: 24px; text-align: center; color: var(--text-mute); font-size: var(--fs-sm); }/* Live "Game" inspector banner (UE5 PIE Details) — editing the running game. */.game-live { padding: 6px 12px; font-size: var(--fs-xs); font-weight: 500; color: var(--run-hi); background: rgba(70, 160, 74, 0.12); border-bottom: 1px solid var(--border); flex-shrink: 0; }diff --git a/desktop/src/theme/log.css b/desktop/src/theme/log.cssindex 116721c4c..c89a4927e 100644--- a/desktop/src/theme/log.css+++ b/desktop/src/theme/log.css@@ -5,27 +5,10 @@========================================================================== */.log-chips { display: flex; gap: 6px; align-items: center; }-.log-chip {- height: 22px;- display: inline-flex;- align-items: center;- gap: 5px;- padding: 0 9px;- border: 1px solid var(--border-line);- border-radius: var(--r-pill);- color: var(--text-mute);- font-size: var(--fs-xs);- font-weight: 500;- cursor: pointer;- transition: color var(--t-fast), background var(--t-fast);-}-.log-chip .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }-.log-chip:hover { color: var(--text-dim); }-.log-chip:active { background: var(--srf-5); }-.log-chip.on { background: var(--srf-4); color: var(--text-dim); }-.log-chip.info.on { color: var(--acc-hi); }-.log-chip.warn.on { color: var(--warn); }-.log-chip.error.on { color: var(--error); }+/* shared .chip; the selected state tints toward the severity's identity color */+.log-chip { font-weight: 500; }+.log-chip.warn.on { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 55%, transparent); background: color-mix(in srgb, var(--warn) 14%, transparent); }+.log-chip.error.on { color: var(--error); border-color: color-mix(in srgb, var(--error) 55%, transparent); background: color-mix(in srgb, var(--error) 14%, transparent); }.log-chip .ct { font-variant-numeric: tabular-nums; opacity: 0.85; }/* shared SearchField, right-aligned in the header row */@@ -56,7 +39,6 @@.log-row.warn .ls { color: var(--warn); }.log-row.error .ls { color: var(--error); }.log-row .lm { color: var(--text-dim); }-.log-empty { padding: 16px 14px; color: var(--text-mute); font-size: var(--fs-xs); font-family: var(--sans); }/* Active state for the header toggles (categories / timestamps). */.pbtn.on { color: var(--acc-hi); background: var(--srf-4); }diff --git a/desktop/src/theme/menus.css b/desktop/src/theme/menus.cssindex 219843157..d05e4c12b 100644--- a/desktop/src/theme/menus.css+++ b/desktop/src/theme/menus.css@@ -104,7 +104,6 @@.ac-item .ad { font-size: var(--fs-2xs); color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.ac-item .ak { font-size: var(--fs-2xs); color: var(--text-mute); opacity: 0; }.ac-item.sel .ak { opacity: 1; }-.ac-empty { padding: 26px; text-align: center; color: var(--text-mute); font-size: var(--fs-sm); }/* ════════════════════════ Modal dialog ════════════════════════ */.modal-backdrop {@@ -132,6 +131,8 @@.modal__x:hover { color: var(--text); background: var(--srf-4); }.modal__body { padding: 14px; overflow-y: auto; }.modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--srf-2); flex-shrink: 0; }+/* ConfirmDialog body — pre-line keeps multi-paragraph warnings readable */+.confirm-body { white-space: pre-line; font-size: var(--fs-sm); color: var(--text-dim); line-height: 1.55; }/* ── New Tilemap tileset chooser ── */.tmpick { display: flex; flex-direction: column; gap: 10px; }@@ -144,7 +145,6 @@.tmpick__icon { flex: 0 0 auto; color: var(--text-mute); }.tmpick__name { flex: 0 0 auto; font-weight: 600; }.tmpick__path { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-2xs); color: var(--text-mute); text-align: right; }-.tmpick__empty { padding: 18px; text-align: center; color: var(--text-mute); font-size: var(--fs-sm); }/* ── Package / Build dialog ── */.build { display: flex; flex-direction: column; gap: 12px; }diff --git a/desktop/src/theme/profiler.css b/desktop/src/theme/profiler.cssindex 5d9cc4c16..397938967 100644--- a/desktop/src/theme/profiler.css+++ b/desktop/src/theme/profiler.css@@ -74,17 +74,8 @@padding: 7px 0;border-bottom: 1px solid var(--border-line);}-.prof-chip {- font: var(--fs-xs, 11px) var(--mono, ui-monospace, monospace);- color: var(--text-faint);- background: transparent;- border: 1px solid var(--border-line);- border-radius: 999px;- padding: 1px 9px;- cursor: pointer;-}-.prof-chip:hover { color: var(--text); }-.prof-chip.on { color: var(--text-hi); border-color: var(--star-line, var(--star)); background: var(--star-dim, rgba(47, 136, 214, 0.18)); }+/* shared .chip, compact + mono for the metric toolbar */+.prof-chip { height: auto; padding: 1px 9px; font-family: var(--mono); }.prof-link {background: none; border: 0; padding: 0; cursor: pointer;color: var(--star-hi, var(--star)); font: inherit; text-decoration: underline;diff --git a/desktop/src/theme/sequencer.css b/desktop/src/theme/sequencer.cssindex 09d48c8ec..b9839d0f3 100644--- a/desktop/src/theme/sequencer.css+++ b/desktop/src/theme/sequencer.css@@ -166,7 +166,6 @@background: var(--raised); border: 1px solid var(--border);border-radius: var(--r-lg); padding: 4px; box-shadow: 0 8px 24px rgba(0,0,0,0.4);}-.seq-picker__empty { padding: 8px; color: var(--text-mute); font-size: var(--fs-xs); }.seq-picker .seq-interp__item { justify-content: space-between; }.seq-picker__comp { color: var(--text-mute); font-size: var(--fs-xs); }.seq-picker__prop { color: var(--text); font-family: var(--mono); font-size: var(--fs-xs); }diff --git a/desktop/src/theme/settings.css b/desktop/src/theme/settings.cssindex ce681d5fd..93eb7709a 100644--- a/desktop/src/theme/settings.css+++ b/desktop/src/theme/settings.css@@ -112,7 +112,6 @@border-bottom: 1px solid var(--border);}.set-group:not(:first-child) { margin-top: 26px; }-.set-empty { color: var(--text-mute); font-size: var(--fs-sm); padding: 20px 2px; }.set-row {display: grid;diff --git a/desktop/src/theme/tilemap.css b/desktop/src/theme/tilemap.cssindex f20096183..c8ff367b8 100644--- a/desktop/src/theme/tilemap.css+++ b/desktop/src/theme/tilemap.css@@ -273,7 +273,6 @@white-space: nowrap;}.tp-tsmenu-item:hover { background: var(--srf-4); color: var(--text); }-.tp-tsmenu-empty { color: var(--text-faint); padding: 6px 8px; font-size: var(--fs-xs); }.tp-warn { color: var(--text-faint); padding: 12px; font-size: var(--fs-xs); }.tp-cell {