refactor(tui): extract system theme generation (#36753)

This commit is contained in:
James Long 2026-07-13 16:39:06 -04:00 committed by GitHub
commit 4c45a5cf23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 206 additions and 268 deletions

View file

@ -2,8 +2,9 @@ import { expect, test } from "bun:test"
import { mkdir, writeFile } from "node:fs/promises"
import path from "node:path"
import type { TerminalColors } from "@opentui/core"
import { DEFAULT_THEMES, addTheme, allThemes, hasTheme, resolveTheme, terminalMode } from "../src/theme"
import { DEFAULT_THEMES, addTheme, allThemes, hasTheme, resolveTheme } from "../src/theme"
import { discoverThemes } from "../src/context/theme"
import { terminalMode } from "../src/theme/system"
import { tmpdir } from "./fixture/fixture"
test("addTheme writes into module theme store", () => {