fix: correct GHOSTTY_DEFAULT_PALETTE to Tomorrow Night

ghostty-web WASM uses Tomorrow Night as its internal default palette,
not VS Code Dark. Updated GHOSTTY_DEFAULT_PALETTE to match the actual
colors so theme remapping works correctly.

Bump version to 0.6.8
This commit is contained in:
GitHub Copilot
2026-01-28 10:05:16 +00:00
parent e04e943e92
commit d7d7a0d165
3 changed files with 23 additions and 24 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "textual-webterm" name = "textual-webterm"
version = "0.6.7" version = "0.6.8"
description = "Serve terminal sessions over the web" description = "Serve terminal sessions over the web"
authors = ["Will McGugan <will@textualize.io>"] authors = ["Will McGugan <will@textualize.io>"]
license = "MIT" license = "MIT"
File diff suppressed because one or more lines are too long
+21 -22
View File
@@ -276,32 +276,31 @@ const THEMES: Record<string, ITheme> = {
}; };
/** /**
* ghostty-web's internal default palette (from ghostty-web.js const q). * ghostty-web's internal default palette (Tomorrow Night theme).
* This is what the WASM terminal uses to resolve ANSI color codes to RGB. * This is what the WASM terminal uses to resolve ANSI color codes to RGB.
* We need to know these to remap them to our custom theme. * We need to know these to remap them to our custom theme.
*/ */
const GHOSTTY_DEFAULT_PALETTE: ITheme = { const GHOSTTY_DEFAULT_PALETTE: ITheme = {
foreground: "#d4d4d4", foreground: "#c5c8c6",
background: "#1e1e1e", background: "#1d1f21",
cursor: "#ffffff", cursor: "#c5c8c6",
cursorAccent: "#1e1e1e", cursorAccent: "#1d1f21",
selectionBackground: "#264f78", selectionBackground: "#373b41",
selectionForeground: "#d4d4d4", black: "#1d1f21",
black: "#000000", red: "#cc6666",
red: "#cd3131", green: "#b5bd68",
green: "#0dbc79", yellow: "#f0c674",
yellow: "#e5e510", blue: "#81a2be",
blue: "#2472c8", magenta: "#b294bb",
magenta: "#bc3fbc", cyan: "#8abeb7",
cyan: "#11a8cd", white: "#c5c8c6",
white: "#e5e5e5", brightBlack: "#969896",
brightBlack: "#666666", brightRed: "#cc6666",
brightRed: "#f14c4c", brightGreen: "#b5bd68",
brightGreen: "#23d18b", brightYellow: "#f0c674",
brightYellow: "#f5f543", brightBlue: "#81a2be",
brightBlue: "#3b8eea", brightMagenta: "#b294bb",
brightMagenta: "#d670d6", brightCyan: "#8abeb7",
brightCyan: "#29b8db",
brightWhite: "#ffffff", brightWhite: "#ffffff",
}; };