refactor(tui): extract system theme generation (#36753)
This commit is contained in:
parent
748b0d8836
commit
4c45a5cf23
10 changed files with 206 additions and 268 deletions
|
|
@ -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", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue