mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-17 04:50:52 +00:00
Stabilize published terminal themes across custom-accent drag, apply accent at chrome/log leaves and CSS injection only, land Phase 0 design/plan docs, and lock Host-bag / Bugbot-clean contracts for the isolation checklist. Co-authored-by: 陈大猫 <binaricat@users.noreply.github.com>
16 lines
615 B
TypeScript
16 lines
615 B
TypeScript
import assert from 'node:assert/strict';
|
|
import { readFileSync } from 'node:fs';
|
|
import test from 'node:test';
|
|
|
|
const source = readFileSync(new URL('./LogView.tsx', import.meta.url), 'utf8');
|
|
|
|
test('LogView applies live custom accent at the leaf from appearanceChromeStore', () => {
|
|
assert.match(source, /useAppearanceChromeStore/);
|
|
assert.match(source, /applyCustomAccentToTerminalTheme\(baseTheme, accentMode, customAccent\)/);
|
|
// Must not rely on an accent-baked defaultTerminalTheme from AppShell bags.
|
|
assert.match(
|
|
source,
|
|
/published defaultTerminalTheme is the stable base catalog/,
|
|
);
|
|
});
|