mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-14 03:56:55 +03:00
refactor(tui): drop unused theme re-exports (#52986)
This commit is contained in:
committed by
GitHub
Unverified
parent
1287996a91
commit
697ca1c9d3
@@ -74,19 +74,6 @@ export const createThemeSource = (config: string): ThemeSource => ({
|
||||
},
|
||||
})
|
||||
|
||||
export { discoverThemes } from "../theme/discovery"
|
||||
|
||||
export {
|
||||
DEFAULT_THEMES,
|
||||
addTheme,
|
||||
allThemes,
|
||||
generateSyntax,
|
||||
hasTheme,
|
||||
selectedForeground,
|
||||
upsertTheme,
|
||||
type Theme,
|
||||
} from "../theme"
|
||||
|
||||
const THEME_REFRESH_DELAYS = [250, 1000] as const
|
||||
|
||||
type State = {
|
||||
|
||||
@@ -1,16 +1,9 @@
|
||||
import {
|
||||
migrateV1,
|
||||
parseThemeDocument,
|
||||
resolveThemeDocument,
|
||||
type ThemeDocument,
|
||||
type ModeDefinition,
|
||||
} from "@opencode/theme/tui"
|
||||
import { migrateV1, parseThemeDocument, type ThemeDocument, type ModeDefinition } from "@opencode/theme/tui"
|
||||
import { resolveThemeColors } from "./resolve"
|
||||
import { DEFAULT_THEMES, type Theme, type ThemeV1Json } from "./v1"
|
||||
import opencode from "./assets/v2/opencode.json" with { type: "json" }
|
||||
|
||||
export { DEFAULT_THEMES, generateSyntax, selectedForeground, type Theme, type ThemeV1Json } from "./v1"
|
||||
export { resolveThemeDocument, type ThemeDocument }
|
||||
|
||||
export type ThemeDocumentSource = Record<string, unknown>
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ import vercel from "./assets/vercel.json" with { type: "json" }
|
||||
import vesper from "./assets/vesper.json" with { type: "json" }
|
||||
import zenburn from "./assets/zenburn.json" with { type: "json" }
|
||||
|
||||
export type { ColorValue, HexColor, RefName, Theme, ThemeColor, ThemeV1Json, Variant } from "@opencode/theme/tui/v1"
|
||||
export type { ColorValue, Theme, ThemeColor, ThemeV1Json } from "@opencode/theme/tui/v1"
|
||||
|
||||
export const DEFAULT_THEMES: Record<string, ThemeV1Json> = {
|
||||
aura,
|
||||
|
||||
Reference in New Issue
Block a user