Skip to content

Commit 4af9def

Browse files
authored
fix(tui): correct theme count tip (anomalyco#8779)
1 parent 12b6210 commit 4af9def

File tree

1 file changed

+5
-2
lines changed
  • packages/opencode/src/cli/cmd/tui/component

1 file changed

+5
-2
lines changed

packages/opencode/src/cli/cmd/tui/component/tips.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { createMemo, createSignal, For } from "solid-js"
2-
import { useTheme } from "@tui/context/theme"
2+
import { DEFAULT_THEMES, useTheme } from "@tui/context/theme"
3+
4+
const themeCount = Object.keys(DEFAULT_THEMES).length
5+
const themeTip = `Use {highlight}/theme{/highlight} or {highlight}Ctrl+X T{/highlight} to switch between ${themeCount} built-in themes`
36

47
type TipPart = { text: string; highlight: boolean }
58

@@ -57,7 +60,7 @@ const TIPS = [
5760
"Press {highlight}Ctrl+X E{/highlight} or {highlight}/editor{/highlight} to compose messages in your external editor",
5861
"Run {highlight}/init{/highlight} to auto-generate project rules based on your codebase",
5962
"Run {highlight}/models{/highlight} or {highlight}Ctrl+X M{/highlight} to see and switch between available AI models",
60-
"Use {highlight}/theme{/highlight} or {highlight}Ctrl+X T{/highlight} to switch between 50+ built-in themes",
63+
themeTip,
6164
"Press {highlight}Ctrl+X N{/highlight} or {highlight}/new{/highlight} to start a fresh conversation session",
6265
"Use {highlight}/sessions{/highlight} or {highlight}Ctrl+X L{/highlight} to list and continue previous conversations",
6366
"Run {highlight}/compact{/highlight} to summarize long sessions near context limits",

0 commit comments

Comments
 (0)